Mercurial > public > hwos_code
comparison src/comm.asm @ 448:aadfe9f2edaf
work on new battery options
author | heinrichsweikamp |
---|---|
date | Tue, 30 Aug 2016 17:26:21 +0200 |
parents | d93d75ae01bf |
children | 0491a84fd0b8 |
comparison
equal
deleted
inserted
replaced
447:f2a1d535347f | 448:aadfe9f2edaf |
---|---|
100 bcf onesecupdate | 100 bcf onesecupdate |
101 bcf LEDr | 101 bcf LEDr |
102 dcfsnz timeout_counter,F | 102 dcfsnz timeout_counter,F |
103 bra comm_service_exit ; Timeout -> Exit | 103 bra comm_service_exit ; Timeout -> Exit |
104 comm_mode2: | 104 comm_mode2: |
105 ; btfsc rechargeable | 105 ; btfsc battery_gauge_available |
106 ; bra comm_mode4 ; Skip | 106 ; bra comm_mode4 ; Skip |
107 ; | 107 ; |
108 ; call get_battery_voltage ; gets battery voltage | 108 ; call get_battery_voltage ; gets battery voltage |
109 ; movlw .3 | 109 ; movlw .3 |
110 ; cpfslt batt_voltage+1 ; Batt Voltage less then 3*256mV? | 110 ; cpfslt batt_voltage+1 ; Batt Voltage less then 3*256mV? |