mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Skip OSTC3 configs which the sport doesn't handle
Use model name to skip some configs which the Sport doesn't handle and starts misbehaving on. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8946c82242
commit
f5176d908d
1 changed files with 22 additions and 6 deletions
|
@ -648,9 +648,17 @@ static dc_status_t read_ostc3_settings(dc_device_t *device, DeviceDetails *m_dev
|
||||||
READ_SETTING(OSTC3_BOTTOM_GAS_CONSUMPTION, bottomGasConsumption);
|
READ_SETTING(OSTC3_BOTTOM_GAS_CONSUMPTION, bottomGasConsumption);
|
||||||
READ_SETTING(OSTC3_DECO_GAS_CONSUMPTION, decoGasConsumption);
|
READ_SETTING(OSTC3_DECO_GAS_CONSUMPTION, decoGasConsumption);
|
||||||
READ_SETTING(OSTC3_MOD_WARNING, modWarning);
|
READ_SETTING(OSTC3_MOD_WARNING, modWarning);
|
||||||
READ_SETTING(OSTC3_DYNAMIC_ASCEND_RATE, dynamicAscendRate);
|
|
||||||
READ_SETTING(OSTC3_GRAPHICAL_SPEED_INDICATOR, graphicalSpeedIndicator);
|
//Skip things not supported on the sport, if its a sport.
|
||||||
READ_SETTING(OSTC3_ALWAYS_SHOW_PPO2, alwaysShowppO2);
|
if (m_deviceDetails->model == "Sport") {
|
||||||
|
EMIT_PROGRESS();
|
||||||
|
EMIT_PROGRESS();
|
||||||
|
EMIT_PROGRESS();
|
||||||
|
} else {
|
||||||
|
READ_SETTING(OSTC3_DYNAMIC_ASCEND_RATE, dynamicAscendRate);
|
||||||
|
READ_SETTING(OSTC3_GRAPHICAL_SPEED_INDICATOR, graphicalSpeedIndicator);
|
||||||
|
READ_SETTING(OSTC3_ALWAYS_SHOW_PPO2, alwaysShowppO2);
|
||||||
|
}
|
||||||
|
|
||||||
#undef READ_SETTING
|
#undef READ_SETTING
|
||||||
|
|
||||||
|
@ -904,9 +912,17 @@ static dc_status_t write_ostc3_settings(dc_device_t *device, DeviceDetails *m_de
|
||||||
WRITE_SETTING(OSTC3_BOTTOM_GAS_CONSUMPTION, bottomGasConsumption);
|
WRITE_SETTING(OSTC3_BOTTOM_GAS_CONSUMPTION, bottomGasConsumption);
|
||||||
WRITE_SETTING(OSTC3_DECO_GAS_CONSUMPTION, decoGasConsumption);
|
WRITE_SETTING(OSTC3_DECO_GAS_CONSUMPTION, decoGasConsumption);
|
||||||
WRITE_SETTING(OSTC3_MOD_WARNING, modWarning);
|
WRITE_SETTING(OSTC3_MOD_WARNING, modWarning);
|
||||||
WRITE_SETTING(OSTC3_DYNAMIC_ASCEND_RATE, dynamicAscendRate);
|
|
||||||
WRITE_SETTING(OSTC3_GRAPHICAL_SPEED_INDICATOR, graphicalSpeedIndicator);
|
//Skip things not supported on the sport, if its a sport.
|
||||||
WRITE_SETTING(OSTC3_ALWAYS_SHOW_PPO2, alwaysShowppO2);
|
if (m_deviceDetails->model == "Sport") {
|
||||||
|
EMIT_PROGRESS();
|
||||||
|
EMIT_PROGRESS();
|
||||||
|
EMIT_PROGRESS();
|
||||||
|
} else {
|
||||||
|
WRITE_SETTING(OSTC3_DYNAMIC_ASCEND_RATE, dynamicAscendRate);
|
||||||
|
WRITE_SETTING(OSTC3_GRAPHICAL_SPEED_INDICATOR, graphicalSpeedIndicator);
|
||||||
|
WRITE_SETTING(OSTC3_ALWAYS_SHOW_PPO2, alwaysShowppO2);
|
||||||
|
}
|
||||||
|
|
||||||
#undef WRITE_SETTING
|
#undef WRITE_SETTING
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue