Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix compile without KWH_RECORDING #165

Merged
merged 1 commit into from
Apr 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions firmware/open_evse/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -920,9 +920,9 @@ void OnboardDisplay::Update(int8_t updmode)
if (!(g_TempMonitor.OverTemperature() || TEMPERATURE_DISPLAY_ALWAYS)) {
#endif // TEMPERATURE_MONITORING
#ifndef KWH_RECORDING
int h = hour(elapsedTime); // display the elapsed charge time
int m = minute(elapsedTime);
int s = second(elapsedTime);
int h = elapsedTime / 3600;
int m = (elapsedTime % 3600) / 60;
int s = elapsedTime % 60;
sprintf(g_sTmp,"%02d:%02d:%02d",h,m,s);
#ifdef RTC
g_sTmp[8]=' ';
Expand Down