Mercurial > public > hwos_code
comparison src/menu_tree.asm @ 355:093b32bf6db2
hud v3 support
author | heinrichsweikamp |
---|---|
date | Fri, 31 Jul 2015 17:44:03 +0200 |
parents | 3f2d0c0bc101 |
children | 2be48ccfa9de |
comparison
equal
deleted
inserted
replaced
354:043890f06bce | 355:093b32bf6db2 |
---|---|
20 #include "external_flash.inc" | 20 #include "external_flash.inc" |
21 #include "shared_definitions.h" ; Mailbox from/to p2_deco.c | 21 #include "shared_definitions.h" ; Mailbox from/to p2_deco.c |
22 #include "isr.inc" | 22 #include "isr.inc" |
23 #include "ghostwriter.inc" | 23 #include "ghostwriter.inc" |
24 #include "adc_lightsensor.inc" | 24 #include "adc_lightsensor.inc" |
25 #include "wait.inc" | |
25 | 26 |
26 CBLOCK tmp+0x40 ; Keep space for menu processor | 27 CBLOCK tmp+0x40 ; Keep space for menu processor |
27 gaslist_gas ; Check ram position in gaslist.asm, too! | 28 gaslist_gas ; Check ram position in gaslist.asm, too! |
28 ENDC | 29 ENDC |
29 | 30 |
116 MENU_END | 117 MENU_END |
117 | 118 |
118 do_calibrate_mix: | 119 do_calibrate_mix: |
119 extern calibrate_mix | 120 extern calibrate_mix |
120 call calibrate_mix ; Calibrate with opt_calibration_O2_ratio, also calibrate S8 HUD if connected | 121 call calibrate_mix ; Calibrate with opt_calibration_O2_ratio, also calibrate S8 HUD if connected |
122 WAITMS d'250' ; Wait for HUD v3 | |
121 goto restart ; Restart into surface mode | 123 goto restart ; Restart into surface mode |
122 | 124 |
123 do_ccr_sensor: | 125 do_ccr_sensor: |
124 call enable_ir_s8 ; Enable IR/S8-Port | 126 call enable_ir_s8 ; Enable IR/S8-Port |
125 bsf menu_show_sensors ; Set flag | 127 bsf menu_show_sensors ; Set flag |