comparison src/tft_outputs.asm @ 62:e7c7c7eeea58

show battery voltage in info menu
author heinrichsweikamp
date Fri, 10 Jan 2014 10:11:43 +0100
parents 1464cd73d184
children 7815bf21d353
comparison
equal deleted inserted replaced
61:d3b494119c98 62:e7c7c7eeea58
2810 bsf leftbind 2810 bsf leftbind
2811 output_16 2811 output_16
2812 bcf leftbind 2812 bcf leftbind
2813 return 2813 return
2814 2814
2815 ; For the Information menu: Append battery voltage
2816 global info_menu_battery_volts
2817 extern tBatteryV
2818 info_menu_battery_volts:
2819 lfsr FSR1,tBatteryV
2820 call strcat_text
2821 movff batt_voltage+1,hi
2822 movff batt_voltage+0,lo
2823 bsf leftbind
2824 output_16dp .2 ; x.xxx
2825 bcf leftbind
2826 PUTC "V"
2827 return
2828
2815 ;----------------------------------------------------------------------------- 2829 ;-----------------------------------------------------------------------------
2816 ; ppO2 menu 2830 ; ppO2 menu
2817 global divesets_ppo2_max 2831 global divesets_ppo2_max
2818 extern tPPO2Max 2832 extern tPPO2Max
2819 extern tbar 2833 extern tbar