Skip to content

Commit

Permalink
always use L2 for PV divert fix #227
Browse files Browse the repository at this point in the history
  • Loading branch information
glynhudson committed May 16, 2019
1 parent 4ae3e3f commit d5802ef
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 d5802ef

Please sign in to comment.