Skip to content

Commit

Permalink
Reset Auto 3F>1F switch in StateA
Browse files Browse the repository at this point in the history
  • Loading branch information
mstegen committed Oct 3, 2024
1 parent 08528f8 commit cb4ee39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions SmartEVSE-3/src/evse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,7 @@ void setState(uint8_t NewState) {
ErrorFlags &= ~NO_SUN;
ErrorFlags &= ~LESS_6A;
ChargeDelay = 0;
Switching_To_Single_Phase = FALSE;
// Reset Node
Node[0].Timer = 0;
Node[0].IntTimer = 0;
Expand Down
3 changes: 1 addition & 2 deletions SmartEVSE-3/src/glcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -808,15 +808,14 @@ void GLCD(void) {
} else if (State != STATE_C) {
switch (Switching_To_Single_Phase) {
case FALSE:
case AFTER_SWITCH:
sprintf(Str, "READY %u", ChargeDelay);
if (!ChargeDelay) Str[5] = '\0';
break;
case GOING_TO_SWITCH:
sprintf(Str, "3F -> 1F %u", ChargeDelay);
if (!ChargeDelay) Str[7] = '\0';
break;
case AFTER_SWITCH: // never getting here, just preventing compiler warning
break;
}
GLCD_print_buf2(5, Str);
} else if (State == STATE_C) {
Expand Down

0 comments on commit cb4ee39

Please sign in to comment.