Mercurial > public > hwos_code
comparison 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 |
comparison
equal
deleted
inserted
replaced
54:7d626c15b577 | 55:448ba265fdae |
---|---|
1188 bcf warning_active ; Clear flag | 1188 bcf warning_active ; Clear flag |
1189 clrf warning_counter ; Clear counter | 1189 clrf warning_counter ; Clear counter |
1190 | 1190 |
1191 ; Warnings for all modes | 1191 ; Warnings for all modes |
1192 call check_warn_battery ; Check if the battery level should be displayed/warned | 1192 call check_warn_battery ; Check if the battery level should be displayed/warned |
1193 call check_divetimeout ; Not actually a warning. Check and show the divemode timeout | |
1193 | 1194 |
1194 btfsc FLAG_apnoe_mode ; Done for Apnoe or Gauge mode | 1195 btfsc FLAG_apnoe_mode ; Done for Apnoe or Gauge mode |
1195 bra divemode_check_for_warnings2 | 1196 bra divemode_check_for_warnings2 |
1196 btfsc FLAG_gauge_mode ; Done for Apnoe or Gauge mode | 1197 btfsc FLAG_gauge_mode ; Done for Apnoe or Gauge mode |
1197 bra divemode_check_for_warnings2 | 1198 bra divemode_check_for_warnings2 |
1241 movlw color_code_battery_low+1 | 1242 movlw color_code_battery_low+1 |
1242 cpfslt lo ; | 1243 cpfslt lo ; |
1243 return ; No warning | 1244 return ; No warning |
1244 bsf warning_active ; Set Warning flag | 1245 bsf warning_active ; Set Warning flag |
1245 return | 1246 return |
1247 | |
1248 check_divetimeout: | |
1249 btfsc divemode2 | |
1250 return ; displayed divetime is not running | |
1251 incf warning_counter,F ; increase counter | |
1252 call TFT_divetimeout ; Show timeout counter | |
1253 return | |
1254 | |
1246 | 1255 |
1247 check_ppO2: ; check current ppO2 and display warning if required | 1256 check_ppO2: ; check current ppO2 and display warning if required |
1248 SAFE_2BYTE_COPY amb_pressure, xA | 1257 SAFE_2BYTE_COPY amb_pressure, xA |
1249 movlw d'10' | 1258 movlw d'10' |
1250 movwf xB+0 | 1259 movwf xB+0 |