aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar Tim Segers <tsegers@pm.me>2022-09-30 23:10:56 +0200
committerGravatar Tim Segers <tsegers@pm.me>2022-09-30 23:10:56 +0200
commitcd8bc129b63fcd148ccc6516cbb52278853fbabc (patch)
treea87a08d626e0dd414825fd09a7ea88ea8e25f6a3
parent6af5ecc8610d0a2eb99a91a06d2780fb517032b9 (diff)
downloadopendeco-cd8bc129b63fcd148ccc6516cbb52278853fbabc.tar.gz
Fix gas switch time not being added to TTS
-rw-r--r--schedule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/schedule.c b/schedule.c
index c3982d2..dec14da 100644
--- a/schedule.c
+++ b/schedule.c
@@ -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;