Mercurial > public > hwos_code
diff src/divemode.asm @ 337:508d7fb98b34
cleanup menu, add "Auto SP" option (Not working yet), minor layout change in compass menu
author | heinrichsweikamp |
---|---|
date | Sun, 28 Jun 2015 13:58:00 +0200 |
parents | 3d43da7acfe1 |
children | 2811932b4e99 |
line wrap: on
line diff
--- a/src/divemode.asm Sun Jun 28 05:05:46 2015 +0200 +++ b/src/divemode.asm Sun Jun 28 13:58:00 2015 +0200 @@ -370,9 +370,12 @@ movwf apnoe_mins return ; done. +calc_deko_divemode_sensor_done: calc_deko_divemode_sensor: ; External sensor stuff - TSTOSS opt_ccr_mode ; =0: Fixed SP, =1: Sensor - return + movff opt_ccr_mode,WREG ; =0: Fixed SP, =1: Sensor, =2: Auto SP + sublw .1 ; opt_ccr_mode = 1 (Sensor)? + bnz calc_deko_divemode_sensor_done ; No, return + rcall divemode_setup_sensor_values ; Setup sensor values call check_sensors ; Check O2 sensor thresholds for fallback movff sensor_setpoint,char_I_const_ppO2; Copy sensor result