- fix log output on initial setting of pin
This commit is contained in:
parent
e8c46c43f6
commit
851e1c0ffb
|
@ -77,7 +77,7 @@ func (p *Pin) Configure() {
|
|||
log.Infof("configuring pin %s (pin no: %d) as Output", p.Name, p.Id)
|
||||
p.PinHandle.Output()
|
||||
if p.InitialState != nil {
|
||||
log.Infof("set initial state \"%s\" for pin %s (pin no: %d)", p.InitialState, p.Name, p.Id)
|
||||
log.Infof("set initial state \"%s\" for pin %s (pin no: %d)", *p.InitialState, p.Name, p.Id)
|
||||
_ = p.Command(*p.InitialState)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue