From 35ad32b54ac0dd5e6b574a5e2921f2e281e020e6 Mon Sep 17 00:00:00 2001 From: Mathias Rasmussen Date: Wed, 24 Feb 2021 22:01:23 +0100 Subject: [PATCH] refactor: Update dithering setting decoding --- Bluejay.asm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Bluejay.asm b/Bluejay.asm index d710843..f659c57 100644 --- a/Bluejay.asm +++ b/Bluejay.asm @@ -3438,11 +3438,9 @@ decode_temp_done: mov Temp1, #Pgm_Dithering ; Read programmed dithering setting mov A, @Temp1 - clr Flag_Dithering - jz decode_dithering - setb Flag_Dithering + add A, #0FFh ; Carry set if A is not zero + mov Flag_Dithering, C ; Set dithering enabled -decode_dithering: IF PWM_BITS_H == 2 ; Initialize pwm dithering bit patterns mov Temp1, #Dithering_Patterns mov @Temp1, #00h