Skip to content

Commit

Permalink
add reset for detected train speed
Browse files Browse the repository at this point in the history
  • Loading branch information
BLuedtke committed May 6, 2024
1 parent 1558ce5 commit a458350
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/state/bidib_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit a458350

Please sign in to comment.