Mercurial > public > hwos_code
diff src/divemode.asm @ 55:448ba265fdae
Change "O2" warning to "ppO2"
author | heinrichsweikamp |
---|---|
date | Mon, 30 Sep 2013 01:00:07 +0200 |
parents | e4e91fe8b09d |
children | 50697bd41c54 |
line wrap: on
line diff
--- a/src/divemode.asm Sun Sep 29 19:10:12 2013 +0200 +++ b/src/divemode.asm Mon Sep 30 01:00:07 2013 +0200 @@ -1190,6 +1190,7 @@ ; Warnings for all modes call check_warn_battery ; Check if the battery level should be displayed/warned + call check_divetimeout ; Not actually a warning. Check and show the divemode timeout btfsc FLAG_apnoe_mode ; Done for Apnoe or Gauge mode bra divemode_check_for_warnings2 @@ -1244,6 +1245,14 @@ bsf warning_active ; Set Warning flag return +check_divetimeout: + btfsc divemode2 + return ; displayed divetime is not running + incf warning_counter,F ; increase counter + call TFT_divetimeout ; Show timeout counter + return + + check_ppO2: ; check current ppO2 and display warning if required SAFE_2BYTE_COPY amb_pressure, xA movlw d'10'