Skip to content

Commit

Permalink
GFI clear attempts were off by one.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlyubimov committed Jul 11, 2017
1 parent 735dc51 commit e627df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hydra_EVSE/Hydra_EVSE.ino
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ void error(unsigned int status)
timeouts.clear();

// kick off gfi retry timer (if under the allowed number of attempts).
if ( (status & STATUS_MASK) == STATUS_ERR_G && gfi_count++ < GFI_CLEAR_ATTEMPTS) {
if ( (status & STATUS_MASK) == STATUS_ERR_G && gfi_count++ <= GFI_CLEAR_ATTEMPTS) {
timeouts.gfi_time = millis();
}

Expand Down

0 comments on commit e627df3

Please sign in to comment.