From 851e1c0ffb383f02aa76688d317a3bf1b44ac4a6 Mon Sep 17 00:00:00 2001 From: Thomas Vogl Date: Sat, 31 Dec 2022 17:26:14 +0100 Subject: [PATCH] - fix log output on initial setting of pin --- internal/PinControlService/Pin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/PinControlService/Pin.go b/internal/PinControlService/Pin.go index 740b478..e2096ed 100644 --- a/internal/PinControlService/Pin.go +++ b/internal/PinControlService/Pin.go @@ -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) }