Skip to content

Commit

Permalink
put back unlock openevse to evseBoot
Browse files Browse the repository at this point in the history
  • Loading branch information
KipK committed May 16, 2023
1 parent 6266db6 commit cfaab5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions src/evse_monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,12 @@ void EvseMonitor::evseBoot(const char *firmware)
_openevse.heartbeatEnable(EVSE_HEATBEAT_INTERVAL, EVSE_HEARTBEAT_CURRENT, [this](int ret, int interval, int current, int triggered) {
_heartbeat = RAPI_RESPONSE_OK == ret;
});

// unlock openevse fw compiled with BOOTLOCK
if (isBootLocked()) {
unlock();
DBUGLN("Unlocked BOOTLOCK");
}
}

void EvseMonitor::updateEvseState(uint8_t evse_state, uint8_t pilot_state, uint32_t vflags)
Expand Down
6 changes: 0 additions & 6 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,6 @@ loop() {

import_timers(&scheduler);
}
// unlock openevse fw compiled with BOOTLOCK
if (evse.isBootLocked()) {
evse.unlock();
DBUGLN("Unlocked BOOTLOCK");
}

// -------------------------------------------------------------------
// Do these things once every 2s
// -------------------------------------------------------------------
Expand Down

0 comments on commit cfaab5a

Please sign in to comment.