Mercurial > public > hwos_code
comparison 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 |
comparison
equal
deleted
inserted
replaced
248:afe73e1a0181 | 249:94bf757690cf |
---|---|
205 | 205 |
206 do_divemode_splist: | 206 do_divemode_splist: |
207 bsf short_gas_decriptions | 207 bsf short_gas_decriptions |
208 movlw .1 | 208 movlw .1 |
209 movwf menupos ; Set to first option in divemode menu | 209 movwf menupos ; Set to first option in divemode menu |
210 movf hardware_flag,W | |
211 sublw 0x11 ; 2 with BLE | |
212 btfsc STATUS,Z | |
213 bra do_divemode_splist2 | |
210 MENU_BEGIN tGaslist, .6 | 214 MENU_BEGIN tGaslist, .6 |
211 MENU_DYNAMIC gaslist_strcat_setpoint, do_switch_sp | 215 MENU_DYNAMIC gaslist_strcat_setpoint, do_switch_sp |
212 MENU_DYNAMIC gaslist_strcat_setpoint, do_switch_sp | 216 MENU_DYNAMIC gaslist_strcat_setpoint, do_switch_sp |
213 MENU_DYNAMIC gaslist_strcat_setpoint, do_switch_sp | 217 MENU_DYNAMIC gaslist_strcat_setpoint, do_switch_sp |
214 MENU_DYNAMIC gaslist_strcat_setpoint, do_switch_sp | 218 MENU_DYNAMIC gaslist_strcat_setpoint, do_switch_sp |
215 MENU_DYNAMIC gaslist_strcat_setpoint, do_switch_sp | 219 MENU_DYNAMIC gaslist_strcat_setpoint, do_switch_sp |
216 MENU_CALL tCCRSensor, do_divemode_sensor | 220 MENU_CALL tCCRSensor, do_divemode_sensor |
217 MENU_END | 221 MENU_END |
222 | |
223 do_divemode_splist2: | |
224 MENU_BEGIN tGaslist, .5 | |
225 MENU_DYNAMIC gaslist_strcat_setpoint, do_switch_sp | |
226 MENU_DYNAMIC gaslist_strcat_setpoint, do_switch_sp | |
227 MENU_DYNAMIC gaslist_strcat_setpoint, do_switch_sp | |
228 MENU_DYNAMIC gaslist_strcat_setpoint, do_switch_sp | |
229 MENU_DYNAMIC gaslist_strcat_setpoint, do_switch_sp | |
230 MENU_END | |
231 | |
218 | 232 |
219 do_divemode_sensor: | 233 do_divemode_sensor: |
220 ; Set customview to 1 (HUD Data) | 234 ; Set customview to 1 (HUD Data) |
221 clrf menupos3 ; customview to come-1 | 235 clrf menupos3 ; customview to come-1 |
222 bsf toggle_customview ; Set flag, the customview will be toggled very soon now... | 236 bsf toggle_customview ; Set flag, the customview will be toggled very soon now... |