Skip to content

Commit

Permalink
Merge pull request #171 from Habbus/develop
Browse files Browse the repository at this point in the history
Heartbeat will now be runtime updated, fix for issue #170
  • Loading branch information
c-jimenez authored Dec 4, 2023
2 parents 883c586 + e698283 commit 6b026de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chargepoint/status/StatusManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void StatusManager::updateConnectionStatus(bool is_connected)
}

// Restart heartbeat process
m_heartbeat_timer.start(m_heartbeat_timer.getInterval());
m_heartbeat_timer.start(m_ocpp_config.heartbeatInterval());
}
}
else
Expand Down Expand Up @@ -197,7 +197,7 @@ void StatusManager::resetHeartBeatTimer()
{
if (m_heartbeat_timer.isStarted())
{
m_heartbeat_timer.restart(m_heartbeat_timer.getInterval());
m_heartbeat_timer.restart(m_ocpp_config.heartbeatInterval());
}
}

Expand Down

0 comments on commit 6b026de

Please sign in to comment.