Skip to content

Commit

Permalink
Merge pull request #228 from OpenEVSE/solar-pv-divert
Browse files Browse the repository at this point in the history
Always use L2 for PV divert fix #227
  • Loading branch information
glynhudson authored May 20, 2019
2 parents 4ae3e3f + d5802ef commit 3db1c22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/divert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
// If EVSE is sleeping charging will not start until solar PV / excess power > min chanrge rate
// Once charging begins it will not pause even if solaer PV / excess power drops less then minimm charge rate. This avoids wear on the relay and the car

#define SERVICE_LEVEL1_VOLTAGE 110
#define SERVICE_LEVEL2_VOLTAGE 240

#define DIVERT_MODE_NORMAL 1
Expand Down Expand Up @@ -118,7 +117,7 @@ void divert_update_state()
}

// IMPROVE: Read from OpenEVSE or emonTX (MQTT)
int voltage = 1 == service ? SERVICE_LEVEL1_VOLTAGE : SERVICE_LEVEL2_VOLTAGE;
int voltage = SERVICE_LEVEL2_VOLTAGE;

// Calculate current
if (mqtt_grid_ie != "")
Expand Down

0 comments on commit 3db1c22

Please sign in to comment.