Skip to content

Commit

Permalink
Set maxcurrent, when it was received from evcc (fix #107)
Browse files Browse the repository at this point in the history
  • Loading branch information
steff393 committed Nov 26, 2023
1 parent 31e8acb commit a9ecafc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ void callback(char* topic, byte* payload, uint8_t length) {
// set current
if (val == 0 || (val >= CURR_ABS_MIN && val <= CURR_ABS_MAX)) {
LOG(0, ", Write to box: %d Value: %d", i, (uint16_t) val)
maxcurrent[i] = (uint8_t)val;
lm_storeRequest(i, val);
}
} else {
Expand Down

0 comments on commit a9ecafc

Please sign in to comment.