debug: unmarshal msg when debug is enabled

This commit is contained in:
2021-11-05 19:48:26 +01:00
parent f7d2ba12e8
commit 8b79fc58c0
2 changed files with 23 additions and 4 deletions

View File

@ -59,7 +59,7 @@ func main() {
}
defer client.Disconnect(50)
p := part.NewPart(client, steeringTopic, driveModeTopic, rcSteeringTopic, tfSteeringTopic)
p := part.NewPart(client, steeringTopic, driveModeTopic, rcSteeringTopic, tfSteeringTopic, debug)
defer p.Stop()
cli.HandleExit(p)