diff src/adc_lightsensor.asm @ 357:36bd27f42362

BUGFIX: Auto-Brightness clipped to lowest settings in bright sunlight on some devices
author heinrichsweikamp
date Sun, 02 Aug 2015 16:52:31 +0200
parents 043890f06bce
children 4389fe9673b2
line wrap: on
line diff
--- a/src/adc_lightsensor.asm	Sun Aug 02 09:52:28 2015 +0200
+++ b/src/adc_lightsensor.asm	Sun Aug 02 16:52:31 2015 +0200
@@ -291,10 +291,10 @@
     movwf   ambient_light+0         ; avoid ADC clipping
 
 get_ambient_level2:
-    movlw   .10
-    subwf   ambient_light+0,F       ; Subtract 10 (ADC Offset)
-    btfsc   STATUS,N
-    movwf   ambient_light+0         ; avoid clipping
+;    movlw   .10
+;    subwf   ambient_light+0,F       ; Subtract 10 (ADC Offset)
+;    btfsc   STATUS,N
+;    movwf   ambient_light+0         ; avoid clipping
 
   	banksel isr_backup              ; Back to Bank0 ISR data
 	movff	opt_brightness,isr1_temp