diff options
author | Tim Segers <tsegers@pm.me> | 2022-09-30 23:10:56 +0200 |
---|---|---|
committer | Tim Segers <tsegers@pm.me> | 2022-09-30 23:10:56 +0200 |
commit | cd8bc129b63fcd148ccc6516cbb52278853fbabc (patch) | |
tree | a87a08d626e0dd414825fd09a7ea88ea8e25f6a3 | |
parent | 6af5ecc8610d0a2eb99a91a06d2780fb517032b9 (diff) | |
download | opendeco-cd8bc129b63fcd148ccc6516cbb52278853fbabc.tar.gz |
Fix gas switch time not being added to TTS
-rw-r--r-- | schedule.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -144,7 +144,7 @@ decoinfo_t calc_deco(decostate_t *ds, const double start_depth, const gas_t *sta /* switch gas */ gas = next; - add_segment_const(ds, switch_depth, 1, gas); + ret.tts += add_segment_const(ds, switch_depth, 1, gas); seg_cb(ds, (waypoint_t){.depth = depth, .time = 1, .gas = gas}, SEG_GAS_SWITCH); continue; |