mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-10 07:26:38 +02:00
write to dtu eeprom if pwr limit is persistent
This commit is contained in:
parent
458639b648
commit
011ad77fce
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ void app::loop(void) {
|
|||
switch (p->packet[12]){
|
||||
case ActivePowerContr:
|
||||
if (iv->devControlCmd >= ActivePowerContr && iv->devControlCmd <= PFSet){ // ok inverter accepted the set point copy it to dtu eeprom
|
||||
if (iv->powerLimit[1]>0){ // User want to have it persistent
|
||||
if ((iv->powerLimit[1] & 0xff00) >0){ // User want to have it persistent
|
||||
mEep->write(ADDR_INV_PWR_LIM + iv->id * 2,iv->powerLimit[0]);
|
||||
mEep->write(ADDR_INV_PWR_LIM_CON + iv->id * 2,iv->powerLimit[1]);
|
||||
updateCrc();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue