MCPcopy Create free account
hub / github.com/evcc-io/evcc / SetTitle

Method SetTitle

core/loadpoint_api.go:114–123  ·  view source on GitHub ↗

SetTitle sets the loadpoint title

(title string)

Source from the content-addressed store, hash-verified

112
113// SetTitle sets the loadpoint title
114func (lp *Loadpoint) SetTitle(title string) {
115 lp.Lock()
116 defer lp.Unlock()
117
118 lp.log.DEBUG.Println("set title:", title)
119
120 if title != lp.title {
121 lp.setTitle(title)
122 }
123}
124
125// setTitle sets the loadpoint title (no mutex)
126func (lp *Loadpoint) setTitle(title string) {

Callers

nothing calls this directly

Calls 4

LockMethod · 0.95
UnlockMethod · 0.95
setTitleMethod · 0.95
PrintlnMethod · 0.80

Tested by

no test coverage detected