mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-18 16:57:11 +02:00
0.8.71
* fix heuristics reset * fix CMT missing frames problem * removed inverter gap setting * removed add to total (MqTT) inverter setting * fixed sending commands to inverters which are soft turned off * save settings before they are exported #1395
This commit is contained in:
parent
91e816e941
commit
d9696dc704
14 changed files with 43 additions and 83 deletions
|
@ -184,7 +184,7 @@ class Inverter {
|
|||
|
||||
void tickSend(std::function<void(uint8_t cmd, bool isDevControl)> cb) {
|
||||
if(mDevControlRequest) {
|
||||
if(InverterStatus::PRODUCING == status)
|
||||
if(InverterStatus::OFF != status)
|
||||
cb(devControlCmd, true);
|
||||
else
|
||||
DPRINTLN(DBG_WARN, F("Inverter is not avail"));
|
||||
|
@ -447,17 +447,14 @@ class Inverter {
|
|||
status = InverterStatus::STARTING;
|
||||
} else {
|
||||
if((*timestamp - recordMeas.ts) > INVERTER_OFF_THRES_SEC) {
|
||||
status = InverterStatus::OFF;
|
||||
actPowerLimit = 0xffff; // power limit will be read once inverter becomes available
|
||||
alarmMesIndex = 0;
|
||||
if(INV_RADIO_TYPE_NRF == ivRadioType) {
|
||||
heuristics.clear();
|
||||
#ifdef DYNAMIC_OFFSET
|
||||
rxOffset = ivGen == IV_HM ? 13 : 12; // effective 3 (or 2), but can easily be recognized as default setting
|
||||
#endif
|
||||
if(status != InverterStatus::OFF) {
|
||||
status = InverterStatus::OFF;
|
||||
actPowerLimit = 0xffff; // power limit will be read once inverter becomes available
|
||||
alarmMesIndex = 0;
|
||||
if(INV_RADIO_TYPE_NRF == ivRadioType)
|
||||
heuristics.clear();
|
||||
}
|
||||
}
|
||||
else
|
||||
} else
|
||||
status = InverterStatus::WAS_ON;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue