comparison code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 141:622da16b768f

LowBatt! Warning in divemode
author heinrichsweikamp
date Thu, 06 Jan 2011 18:36:22 +0100
parents 87a53efbb5ba
children 8b75ba28d641
comparison
equal deleted inserted replaced
140:87a53efbb5ba 141:622da16b768f
1566 return 1566 return
1567 1567
1568 PLED_nofly_time: 1568 PLED_nofly_time:
1569 movff nofly_time+0,lo 1569 movff nofly_time+0,lo
1570 movff nofly_time+1,hi ; Copy 1570 movff nofly_time+1,hi ; Copy
1571 tstfsz lo ; =0? 1571 movlw d'1'
1572 cpfseq lo ; =1?
1572 bra PLED_nofly_time2 ; No! 1573 bra PLED_nofly_time2 ; No!
1573 tstfsz hi ; =0? 1574 tstfsz hi ; =0?
1574 bra PLED_nofly_time2 ; No! 1575 bra PLED_nofly_time2 ; No!
1575 return 1576 return
1576 1577
1623 bcf leftbind 1624 bcf leftbind
1624 STRCAT_PRINT "mbar " 1625 STRCAT_PRINT "mbar "
1625 return 1626 return
1626 1627
1627 update_batt_voltage_divemode: 1628 update_batt_voltage_divemode:
1629 call PLED_warnings_color
1630 DISPLAYTEXT d'246' ; LowBatt!
1631 call PLED_standard_color
1632 return
1628 1633
1629 update_batt_voltage: 1634 update_batt_voltage:
1630 ostc_debug 'f' 1635 ostc_debug 'f'
1631 1636
1632 GETCUSTOM8 d'31' ; =1 if battery voltage should be visible 1637 GETCUSTOM8 d'31' ; =1 if battery voltage should be visible