Skip to content

Commit

Permalink
Merge pull request #37 from uniba-swt/36-reset-detected-train-speed
Browse files Browse the repository at this point in the history
add reset for detected train speed
  • Loading branch information
BLuedtke authored Jun 25, 2024
2 parents 1558ce5 + a458350 commit 5f27c61
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 5f27c61

Please sign in to comment.