From a4583505a9303bdea0eb6f9825dc3837b41cfcbe Mon Sep 17 00:00:00 2001 From: Bernhard Luedtke Date: Mon, 6 May 2024 09:28:16 +0200 Subject: [PATCH] add reset for detected train speed --- src/state/bidib_state.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/state/bidib_state.c b/src/state/bidib_state.c index 1a31c00..3ce0b90 100644 --- a/src/state/bidib_state.c +++ b/src/state/bidib_state.c @@ -770,6 +770,7 @@ void bidib_state_reset(void) { train_state->on_track = false; train_state->orientation = BIDIB_TRAIN_ORIENTATION_LEFT; train_state->set_speed_step = 0; + train_state->detected_kmh_speed = 0; train_state->set_is_forwards = true; train_state->ack = BIDIB_DCC_ACK_PENDING; for (size_t j = 0; j < train_state->peripherals->len; j++) {