defaultMode executes the action
()
| 663 | |
| 664 | // defaultMode executes the action |
| 665 | func (lp *Loadpoint) defaultMode() { |
| 666 | lp.RLock() |
| 667 | mode := lp.DefaultMode |
| 668 | lp.RUnlock() |
| 669 | |
| 670 | if mode != "" && mode != lp.GetMode() { |
| 671 | lp.SetMode(mode) |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | // Prepare loadpoint configuration by adding missing helper elements |
| 676 | func (lp *Loadpoint) Prepare(site site.API, uiChan chan<- util.Param, pushChan chan<- messenger.Event, lpChan chan<- *Loadpoint) { |
no test coverage detected