diff --git a/cmd/treatment/main.go b/cmd/treatment/main.go index 6d9fbb48..d716c7d8 100644 --- a/cmd/treatment/main.go +++ b/cmd/treatment/main.go @@ -113,7 +113,7 @@ func main() { // The netsender client will handle communication with netreceiver and GPIO stuff. log.Log(logger.Debug, "initialising netsender client") - ns, err := netsender.New(log, gpio.InitPin, gpio.ReadPin, gpio.WritePin, varMap) + ns, err := netsender.New(log, gpio.InitPin, nil, gpio.WritePin, varMap) if err != nil { log.Log(logger.Fatal, "could not initialise netsender client", "error", err.Error()) } @@ -208,6 +208,9 @@ func run(rv *revid.Revid, ns *netsender.Sender, file *string, l *logger.Logger, sleep(ns, l) continue } + default: + l.Log(logger.Warning, "mode is not valid", "mode", ns.Mode()) + } l.Log(logger.Info, "revid updated with new mode") sleep(ns, l)