Skip to content

Commit

Permalink
Make ESP error visible to the user
Browse files Browse the repository at this point in the history
  • Loading branch information
vicobarberan committed Mar 5, 2024
1 parent b8ff61c commit ea757f0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sam/src/SckBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,12 @@ void SckBase::reviewState()
/* buttonEvent(); */

// update ESP serial communication error status
if (serESP.error) st.error = ERROR_ESP;
if (serESP.error) {
st.error = ERROR_ESP;
if (st.mode == MODE_SD) led.update(led.PINK, led.PULSE_ERROR);
else if (st.onSetup) led.update(led.RED, led.PULSE_ERROR);
else led.update(led.BLUE, led.PULSE_ERROR);
}

if (st.onShell) {

Expand Down

0 comments on commit ea757f0

Please sign in to comment.