comparison src/menu_processor.asm @ 62:e7c7c7eeea58

show battery voltage in info menu
author heinrichsweikamp
date Fri, 10 Jan 2014 10:11:43 +0100
parents ec4d8503ec45
children 53b64c5472e1
comparison
equal deleted inserted replaced
61:d3b494119c98 62:e7c7c7eeea58
19 #include "start.inc" 19 #include "start.inc"
20 #include "surfmode.inc" 20 #include "surfmode.inc"
21 #include "divemode.inc" 21 #include "divemode.inc"
22 #include "tft_outputs.inc" 22 #include "tft_outputs.inc"
23 #include "eeprom_rs232.inc" 23 #include "eeprom_rs232.inc"
24 #include "adc_lightsensor.inc"
24 25
25 ;NOTE: should be idenric in .inc and .asm ! 26 ;NOTE: should be idenric in .inc and .asm !
26 #define MENU_LINES_MAX .7 ; Number of lines per screen? 27 #define MENU_LINES_MAX .7 ; Number of lines per screen?
27 #define MENU_TITLE_FONT WIN_STD ; Font should contains lower/UPPER alpha 28 #define MENU_TITLE_FONT WIN_STD ; Font should contains lower/UPPER alpha
28 #define MENU_LINE_FONT WIN_SMALL ; Font should contains lower/UPPER alpha 29 #define MENU_LINE_FONT WIN_SMALL ; Font should contains lower/UPPER alpha
312 btfss onesecupdate ; New second 313 btfss onesecupdate ; New second
313 bra menu_line_loop2 ; not yet... 314 bra menu_line_loop2 ; not yet...
314 315
315 call timeout_surfmode ; timeout 316 call timeout_surfmode ; timeout
316 call set_dive_modes ; check, if divemode must be entered 317 call set_dive_modes ; check, if divemode must be entered
318 call get_battery_voltage ; gets battery voltage
317 319
318 btfsc settime_setdate ; In the Set Time or Set Date menu? 320 btfsc settime_setdate ; In the Set Time or Set Date menu?
319 call TFT_show_time_date_menu ; Yes, update clock 321 call TFT_show_time_date_menu ; Yes, update clock
320 btfsc menu_show_sensors ; In the "Sensors" menu? 322 btfsc menu_show_sensors ; In the "Sensors" menu?
321 call TFT_menu_hud ; Yes, update HUD data 323 call TFT_menu_hud ; Yes, update HUD data