# HG changeset patch # User heinrichsweikamp # Date 1371390637 -7200 # Node ID 71e88ee8bbf2cc24c023b4245075bfc8f69f8de4 # Parent 0ab7d244c6ecc7b2da0e6403a3635d2986f341bf battery info updater diff -r 0ab7d244c6ec -r 71e88ee8bbf2 code_part1/OSTC_code_asm_part1/adc_rtc.asm --- a/code_part1/OSTC_code_asm_part1/adc_rtc.asm Sat Jun 15 15:47:54 2013 +0200 +++ b/code_part1/OSTC_code_asm_part1/adc_rtc.asm Sun Jun 16 15:50:37 2013 +0200 @@ -102,16 +102,16 @@ movwf sub_a+0 movlw HIGH d'2000' movwf sub_a+1 - call subU16 ; sub_c = sub_a - sub_b - btfsc neg_flag ; neg_flag=1 if eeprom40:41 < 2000 + call subU16 ; sub_c = sub_a - sub_b + btfss neg_flag ; neg_flag=1 if eeprom40:41 < 2000 bsf initialize_battery1 ; battery need to be initialised movlw LOW d'4500' ; must be lower then 4500mV... movwf sub_a+0 movlw HIGH d'4500' movwf sub_a+1 - call subU16 ; sub_c = sub_a - sub_b - btfss neg_flag ; neg_flag=1 if eeprom40:41 < 4500 + call subU16 ; sub_c = sub_a - sub_b + btfsc neg_flag ; neg_flag=1 if eeprom40:41 < 4500 bsf initialize_battery1 ; battery need to be initialised btfss initialize_battery1 ; battery need to be initialised?