Mercurial > public > hwos_code
diff src/divemenu_tree.asm @ 249:94bf757690cf
ignore sensor for non-sensor hardware
author | heinrichsweikamp |
---|---|
date | Tue, 17 Mar 2015 12:16:15 +0100 |
parents | bca0f054f023 |
children | 653a3ab08062 |
line wrap: on
line diff
--- a/src/divemenu_tree.asm Mon Mar 16 15:58:51 2015 +0100 +++ b/src/divemenu_tree.asm Tue Mar 17 12:16:15 2015 +0100 @@ -207,6 +207,10 @@ bsf short_gas_decriptions movlw .1 movwf menupos ; Set to first option in divemode menu + movf hardware_flag,W + sublw 0x11 ; 2 with BLE + btfsc STATUS,Z + bra do_divemode_splist2 MENU_BEGIN tGaslist, .6 MENU_DYNAMIC gaslist_strcat_setpoint, do_switch_sp MENU_DYNAMIC gaslist_strcat_setpoint, do_switch_sp @@ -216,6 +220,16 @@ MENU_CALL tCCRSensor, do_divemode_sensor MENU_END +do_divemode_splist2: + MENU_BEGIN tGaslist, .5 + MENU_DYNAMIC gaslist_strcat_setpoint, do_switch_sp + MENU_DYNAMIC gaslist_strcat_setpoint, do_switch_sp + MENU_DYNAMIC gaslist_strcat_setpoint, do_switch_sp + MENU_DYNAMIC gaslist_strcat_setpoint, do_switch_sp + MENU_DYNAMIC gaslist_strcat_setpoint, do_switch_sp + MENU_END + + do_divemode_sensor: ; Set customview to 1 (HUD Data) clrf menupos3 ; customview to come-1