Mercurial > public > hwos_code
comparison src/divemenu_tree.asm @ 195:bca0f054f023
allow auto-return from setpoint fallback
author | heinrichsweikamp |
---|---|
date | Wed, 05 Nov 2014 14:43:13 +0100 |
parents | 901c10831e4e |
children | 94bf757690cf |
comparison
equal
deleted
inserted
replaced
194:c241d3af0e47 | 195:bca0f054f023 |
---|---|
13 #include "menu_processor.inc" | 13 #include "menu_processor.inc" |
14 #include "shared_definitions.h" ; Mailbox from/to p2_deco.c | 14 #include "shared_definitions.h" ; Mailbox from/to p2_deco.c |
15 #include "tft_outputs.inc" | 15 #include "tft_outputs.inc" |
16 #include "customview.inc" | 16 #include "customview.inc" |
17 #include "strings.inc" | 17 #include "strings.inc" |
18 #include "calibrate.inc" | |
18 | 19 |
19 divegui CODE | 20 divegui CODE |
20 ;============================================================================= | 21 ;============================================================================= |
21 ; Main Menu | 22 ; Main Menu |
22 global do_main_divemenu | 23 global do_main_divemenu |
67 bsf voting_logic_sensor1 | 68 bsf voting_logic_sensor1 |
68 bsf voting_logic_sensor2 | 69 bsf voting_logic_sensor2 |
69 bsf voting_logic_sensor3 | 70 bsf voting_logic_sensor3 |
70 extern divemode_setup_sensor_values | 71 extern divemode_setup_sensor_values |
71 call divemode_setup_sensor_values ; Setup sensor values | 72 call divemode_setup_sensor_values ; Setup sensor values |
73 call check_sensors ; Check O2 sensor thresholds for fallback | |
72 bra do_switch_sp2 | 74 bra do_switch_sp2 |
73 | 75 |
74 do_divemode_resetavr: | 76 do_divemode_resetavr: |
75 bsf reset_average_depth ; Set Flag | 77 bsf reset_average_depth ; Set Flag |
76 bra do_exit_divemode_menu ; And exit | 78 bra do_exit_divemode_menu ; And exit |