Mercurial > public > hwos_code
comparison src/customview.asm @ 476:7c10557c248e
no sensors in surface mode if the computer has no sensor inputs
author | heinrichsweikamp |
---|---|
date | Mon, 16 Jan 2017 11:05:02 +0100 |
parents | 4fdf6886004b |
children | c0ee33f1f399 |
comparison
equal
deleted
inserted
replaced
475:237afdfb4918 | 476:7c10557c248e |
---|---|
392 bra customview_toggle ; no, Call next view... | 392 bra customview_toggle ; no, Call next view... |
393 movf hardware_flag,W | 393 movf hardware_flag,W |
394 sublw 0x11 ; 2 with BLE | 394 sublw 0x11 ; 2 with BLE |
395 btfsc STATUS,Z | 395 btfsc STATUS,Z |
396 bra customview_toggle ; no, Call next view... | 396 bra customview_toggle ; no, Call next view... |
397 movf hardware_flag,W | |
398 sublw 0x13 ; + | |
399 btfsc STATUS,Z | |
400 bra customview_toggle ; no, Call next view... | |
397 | 401 |
398 bsf dive_hud1_displayed ; Set display flag | 402 bsf dive_hud1_displayed ; Set display flag |
399 bsf dive_hud2_displayed ; Set display flag | 403 bsf dive_hud2_displayed ; Set display flag |
400 bsf dive_hud3_displayed ; Set display flag | 404 bsf dive_hud3_displayed ; Set display flag |
401 call TFT_hud_mask ; Setup HUD mask | 405 call TFT_hud_mask ; Setup HUD mask |
456 bra customview_toggle ; Yes, Call next view... | 460 bra customview_toggle ; Yes, Call next view... |
457 btfsc FLAG_apnoe_mode ; In Apnoe mode? | 461 btfsc FLAG_apnoe_mode ; In Apnoe mode? |
458 bra customview_toggle ; yes, Call next view... | 462 bra customview_toggle ; yes, Call next view... |
459 btfss FLAG_ccr_mode ; In CC mode? | 463 btfss FLAG_ccr_mode ; In CC mode? |
460 bra customview_toggle ; no, Call next view... | 464 bra customview_toggle ; no, Call next view... |
465 | |
466 movf hardware_flag,W | |
467 sublw 0x13 ; + | |
468 btfsc STATUS,Z | |
469 bra customview_toggle ; no, Call next view... | |
470 | |
461 movff opt_ccr_mode,WREG ; =0: Fixed SP, =1: Sensor, =2: Auto SP | 471 movff opt_ccr_mode,WREG ; =0: Fixed SP, =1: Sensor, =2: Auto SP |
462 sublw .1 ; opt_ccr_mode = 1 (Sensor)? | 472 sublw .1 ; opt_ccr_mode = 1 (Sensor)? |
463 bnz customview_toggle ; no, Call next view... | 473 bnz customview_toggle ; no, Call next view... |
464 call TFT_hud_mask ; Setup HUD mask | 474 call TFT_hud_mask ; Setup HUD mask |
465 call TFT_hud_voltages ; Show HUD details | 475 call TFT_hud_voltages ; Show HUD details |