- fix log output on initial setting of pin
This commit is contained in:
@@ -77,7 +77,7 @@ func (p *Pin) Configure() {
|
|||||||
log.Infof("configuring pin %s (pin no: %d) as Output", p.Name, p.Id)
|
log.Infof("configuring pin %s (pin no: %d) as Output", p.Name, p.Id)
|
||||||
p.PinHandle.Output()
|
p.PinHandle.Output()
|
||||||
if p.InitialState != nil {
|
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)
|
_ = p.Command(*p.InitialState)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user