From 7b5cf8a10702f3d50fd59b24530dcbe752b6d63a Mon Sep 17 00:00:00 2001 From: saji Date: Thu, 6 Jul 2023 15:32:36 -0500 Subject: [PATCH] fix inverted socketcan --- cmd/gotelem/cli/socketcan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/gotelem/cli/socketcan.go b/cmd/gotelem/cli/socketcan.go index 3ad1708..1994084 100644 --- a/cmd/gotelem/cli/socketcan.go +++ b/cmd/gotelem/cli/socketcan.go @@ -56,7 +56,7 @@ func (s *socketCANService) Start(cCtx *cli.Context, deps svcDeps) (err error) { logger := deps.Logger broker := deps.Broker - if cCtx.IsSet("can") { + if !cCtx.IsSet("can") { logger.Info("no can device provided") return }