forked from hoylabs/OpenDTU-OnBattery
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DPL: increase backoff while inverter is kept shut down
if the new calculated power limit is below the minimum power limit setting, the inverter is shut down. the shutdown() function is called every time this condition is detected, which is also true if the inverter is kept shut down for longer. that happens while the battery is charging in particular (solar passthrough off). there are other cases. in such cases we still want to get into the DPL status "stable". to be able to determine this stable state, we must know if the call to shutdown did actually initiate a shutdown or if the inverter is already shut down. we then can forward this "changed" or "not changed" info up the call chain, where the loop() will know that the system is actually stable.
- Loading branch information
1 parent
f68f68b
commit b7def73
Showing
2 changed files
with
43 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters