Mercurial > public > hwos_code
comparison src/divemode.asm @ 152:19ad15f04f60
BUGFIX: Clear Setpoint-Fallback warning when in bailout
NEW: 180? display rotation option
author | heinrichsweikamp |
---|---|
date | Thu, 21 Aug 2014 10:19:03 +0200 |
parents | 022b886eddaf |
children | 99ac325586ce |
comparison
equal
deleted
inserted
replaced
151:5cb177f0948a | 152:19ad15f04f60 |
---|---|
301 rcall divemode_setup_sensor_values ; Setup sensor values | 301 rcall divemode_setup_sensor_values ; Setup sensor values |
302 movff sensor_setpoint,char_I_const_ppO2; Copy sensor result | 302 movff sensor_setpoint,char_I_const_ppO2; Copy sensor result |
303 | 303 |
304 TSTOSS opt_sensor_fallback ; =1: Fallback to SP1 when sensor is lost | 304 TSTOSS opt_sensor_fallback ; =1: Fallback to SP1 when sensor is lost |
305 bra calc_deko_divemode2a ; Never fallback | 305 bra calc_deko_divemode2a ; Never fallback |
306 | |
307 btfsc is_bailout ; In bailout? | |
308 bra calc_deko_divemode2a ; Never fallback in bailout | |
306 ; Check if we should fallback to SP1 | 309 ; Check if we should fallback to SP1 |
307 btfsc use_02_sensor1 | 310 btfsc use_02_sensor1 |
308 bra calc_deko_divemode2a ; At least one sensor is active, no fallback | 311 bra calc_deko_divemode2a ; At least one sensor is active, no fallback |
309 btfsc use_02_sensor2 | 312 btfsc use_02_sensor2 |
310 bra calc_deko_divemode2a ; At least one sensor is active, no fallback | 313 bra calc_deko_divemode2a ; At least one sensor is active, no fallback |