comparison src/divemode.asm @ 86:3bbbfab9818f

CHANGE: No warning sign for selected aGF CHANGE: Show battery warning sign for less then 10% battery capacity
author heinrichsweikamp
date Wed, 02 Apr 2014 09:55:01 +0200
parents eb72c8865f47
children c34516c99ca8
comparison
equal deleted inserted replaced
85:45a420beb534 86:3bbbfab9818f
1301 return ; No Display, no warning 1301 return ; No Display, no warning
1302 ; Display Battery, but warn? 1302 ; Display Battery, but warn?
1303 incf warning_counter,F ; increase counter 1303 incf warning_counter,F ; increase counter
1304 call TFT_update_batt_percent_divemode ; Show percent 1304 call TFT_update_batt_percent_divemode ; Show percent
1305 1305
1306 movff batt_percent,lo
1306 movlw color_code_battery_low+1 1307 movlw color_code_battery_low+1
1307 cpfslt lo ; 1308 cpfslt lo ;
1308 return ; No warning 1309 return ; No warning
1309 bsf warning_active ; Set Warning flag 1310 bsf warning_active ; Set Warning flag
1310 return 1311 return
1447 return 1448 return
1448 1449
1449 warn_agf: 1450 warn_agf:
1450 incf warning_counter,F ; increase counter 1451 incf warning_counter,F ; increase counter
1451 call TFT_warning_agf ; Show aGF warning 1452 call TFT_warning_agf ; Show aGF warning
1452 bsf warning_active ; Set Warning flag 1453 ; bsf warning_active ; Set Warning flag
1453 return 1454 return
1454 1455
1455 1456
1456 END 1457 END