Skip to content

Commit ae5b26b

Browse files
committed
main.cpp: Only use BatteryCurrent when Mainsmeter is set to API
1 parent e81f1b4 commit ae5b26b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SmartEVSE-3/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3601,7 +3601,7 @@ int16_t getBatteryCurrent(void) {
36013601
homeBatteryLastUpdate = 0; // last update was more then 60s ago, set to 0
36023602
homeBatteryCurrent = 0;
36033603
return 0;
3604-
} else if (Mode == MODE_SOLAR) {
3604+
} else if (Mode == MODE_SOLAR && MainsMeter.Type == EM_API) { // Only use BatteryCurrent if Mainsmeter = API, and Solar Mode
36053605
return homeBatteryCurrent;
36063606
} else {
36073607
return 0; // don't touch homeBatteryCurrent, just return 0

0 commit comments

Comments
 (0)