Skip to content

Commit

Permalink
Add delays to TempController state switches
Browse files Browse the repository at this point in the history
  • Loading branch information
Lenart12 committed Sep 18, 2024
1 parent 7c6cb70 commit 8331548
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pio-eub-firmware/src/TempController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void TempController::Process() {

current_device = 0;
crc_error_timeout = 0;
switch_state(State::READ);
switch_state(State::READ, 100);
break;
}
case State::READ: {
Expand Down Expand Up @@ -225,6 +225,8 @@ void TempController::Process() {

crc_error_timeout = 0;
current_device++;

switch_state(state, 5);
break;
}
case State::WAIT_SWITCH_STATE: {
Expand Down

0 comments on commit 8331548

Please sign in to comment.