comparison src/menu_processor.asm @ 229:e1e5876bd777

minor cleanup
author mh@mh-THINK
date Wed, 18 Feb 2015 23:07:04 +0100
parents e79bc535ef9e
children 653a3ab08062
comparison
equal deleted inserted replaced
228:b17acfa2e5d9 229:e1e5876bd777
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 #include "adc_lightsensor.inc"
25 #include "calibrate.inc" 25
26 26
27 ;NOTE: should be idenric in .inc and .asm ! 27 ;NOTE: should be identic in .inc and .asm !
28 #define MENU_LINES_MAX .7 ; Number of lines per screen? 28 #define MENU_LINES_MAX .7 ; Number of lines per screen?
29 #define MENU_TITLE_FONT WIN_STD ; Font should contains lower/UPPER alpha 29 #define MENU_TITLE_FONT WIN_STD ; Font should contains lower/UPPER alpha
30 #define MENU_LINE_FONT WIN_SMALL ; Font should contains lower/UPPER alpha 30 #define MENU_LINE_FONT WIN_SMALL ; Font should contains lower/UPPER alpha
31 #define MENU_LEFT .20 ; Position of first menu item 31 #define MENU_LEFT .20 ; Position of first menu item
32 #define MENU_HEIGHT .27 ; Spacing between menu lines. 32 #define MENU_HEIGHT .27 ; Spacing between menu lines.
333 bra next_line_menu 333 bra next_line_menu
334 334
335 btfss quarter_second_update ; 1/4 second? 335 btfss quarter_second_update ; 1/4 second?
336 bra menu_line_loop1 ; Not yet... 336 bra menu_line_loop1 ; Not yet...
337 337
338 call compute_ppo2 ; compute mv_sensorX and ppo2_sensorX arrays
339 btfsc menu_show_sensors2 ; In the "Calibrate" menu? 338 btfsc menu_show_sensors2 ; In the "Calibrate" menu?
340 call TFT_menu_calibrate ; Yes, update mV data 339 call TFT_menu_calibrate ; Yes, update mV data
341 bcf quarter_second_update ; Clear flag 340 bcf quarter_second_update ; Clear flag
342 341
343 menu_line_loop1: 342 menu_line_loop1: