From 1057bad1f52e150ad87843ca06c7f05a53f8f4b4 Mon Sep 17 00:00:00 2001 From: Cyrille Nofficial Date: Mon, 30 May 2022 18:53:19 +0200 Subject: [PATCH] fix: renable handle TERM signals --- cmd/rc-arduino/rc-arduino.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/rc-arduino/rc-arduino.go b/cmd/rc-arduino/rc-arduino.go index e987603..9256da6 100644 --- a/cmd/rc-arduino/rc-arduino.go +++ b/cmd/rc-arduino/rc-arduino.go @@ -84,6 +84,9 @@ func main() { sc := arduino.NewAsymetricPWMSteeringConfig(steeringLeftPWM, steeringRightPWM, steeringCenterPWM) a := arduino.NewPart(client, device, baud, throttleTopic, steeringTopic, driveModeTopic, switchRecordTopic, pubFrequency, sc) + + cli.HandleExit(a) + err = a.Start() if err != nil { zap.S().Errorw("unable to start service", "error", err)