Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
lincomatic committed Feb 6, 2018
1 parent 79a1357 commit 676e255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/open_evse/EnergyMeter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void EnergyMeter::calcUsage()
if (dms > KWH_CALC_INTERVAL_MS) {
uint32_t ma = g_EvseController.GetChargingCurrent();
#ifdef VOLTMETER
m_wattSeconds += ((g_EvseController.GetVoltage()/1000UL) * (ma/1000UL) * dms)) / 1000UL;
m_wattSeconds += ((g_EvseController.GetVoltage()/1000UL) * (ma/1000UL) * dms) / 1000UL;
#else // !VOLTMETER
m_wattSeconds += (((g_EvseController.GetCurSvcLevel() == 2) ? VOLTS_FOR_L2:VOLTS_FOR_L1) * (ma/1000UL) * dms) / 1000UL;
#endif // VOLTMETER
Expand Down

0 comments on commit 676e255

Please sign in to comment.