Skip to content

Commit

Permalink
Feature: Huawei grid charger: update values when submitting parameters
Browse files Browse the repository at this point in the history
after sending new parameters, immediately send a new request to poll the
new parameters, allowing to update the web UI in particular.
  • Loading branch information
schlimmchen committed Jan 23, 2025
1 parent c9c0ee5 commit 9a23c23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gridcharger/huawei/HardwareInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ void HardwareInterface::setParameter(HardwareInterface::Setting setting, float v
}

_sendQueue.push({setting, static_cast<uint16_t>(val)});
_nextRequestMillis = millis() - 1; // request param feedback immediately

xTaskNotifyGive(_taskHandle);
}
Expand Down

0 comments on commit 9a23c23

Please sign in to comment.