SetThresholds sets the PV mode threshold settings
(thresholds loadpoint.ThresholdsConfig)
| 510 | |
| 511 | // SetThresholds sets the PV mode threshold settings |
| 512 | func (lp *Loadpoint) SetThresholds(thresholds loadpoint.ThresholdsConfig) { |
| 513 | lp.Lock() |
| 514 | defer lp.Unlock() |
| 515 | |
| 516 | lp.log.DEBUG.Printf("set thresholds: %+v", thresholds) |
| 517 | |
| 518 | // apply immediately |
| 519 | lp.setThresholds(thresholds) |
| 520 | } |
| 521 | |
| 522 | // GetEnableThreshold gets the loadpoint enable threshold |
| 523 | func (lp *Loadpoint) GetEnableThreshold() float64 { |
nothing calls this directly
no test coverage detected