- fix log output on initial setting of pin

This commit is contained in:
2022-12-31 17:26:14 +01:00
parent e8c46c43f6
commit 851e1c0ffb

View File

@@ -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)
}