- fix log output on initial setting of pin

This commit is contained in:
Thomas Vogl 2022-12-31 17:26:14 +01:00
parent e8c46c43f6
commit 851e1c0ffb
1 changed files with 1 additions and 1 deletions

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