Mercurial > public > hwos_code
diff src/adc_lightsensor.asm @ 136:9a637c9bb19a
rename Deco Planner to Simulator
author | heinrichsweikamp |
---|---|
date | Thu, 17 Jul 2014 13:29:25 +0200 |
parents | e2f04bb2539c |
children | 5cb177f0948a |
line wrap: on
line diff
--- a/src/adc_lightsensor.asm Wed Jul 16 14:39:56 2014 +0200 +++ b/src/adc_lightsensor.asm Thu Jul 17 13:29:25 2014 +0200 @@ -274,9 +274,11 @@ incf isr1_temp,F ; adjust 0-2 to 1-3 banksel common ; flag is in bank1 - movlw ambient_light_max_high ; brightest setting - btfsc battery_is_36v ; 3,6V battery in use? - movlw ambient_light_max_high_36V ; Yes... + movlw ambient_light_max_high_c3; c3 hardware brightest setting + btfss c3_hardware + movlw ambient_light_max_high_15V; 1,5V battery brightest setting + btfsc battery_is_36v ; 3,6V battery in use? + movlw ambient_light_max_high_36V ; 3,6V battery brightest setting banksel isr_backup ; Back to Bank0 ISR data dcfsnz isr1_temp,F