Commit ed61541
committed
Improve resiliency of SoC calculation
Without this commit, the SoC calculation task would crash and not
recover if the upper and lower SoC bounds are the same.
Signed-off-by: Sahas Subramanian <[email protected]>1 parent 31605c6 commit ed61541
File tree
1 file changed
+11
-3
lines changed- src/frequenz/sdk/timeseries/battery_pool
1 file changed
+11
-3
lines changedLines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
401 | | - | |
402 | | - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
403 | 411 | | |
404 | 412 | | |
405 | 413 | | |
| |||
0 commit comments