From cd8bc129b63fcd148ccc6516cbb52278853fbabc Mon Sep 17 00:00:00 2001 From: Tim Segers Date: Fri, 30 Sep 2022 23:10:56 +0200 Subject: Fix gas switch time not being added to TTS --- schedule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2