From 0f12aee5e9ea7d2cb7c8fcd5e30a667590f63b44 Mon Sep 17 00:00:00 2001 From: Elara Musayelyan Date: Sun, 6 Nov 2022 20:20:15 -0800 Subject: [PATCH] Use NavFlag type in SetFlag() --- navigation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/navigation.go b/navigation.go index 73d93b0..ff44a36 100644 --- a/navigation.go +++ b/navigation.go @@ -118,7 +118,7 @@ const ( NavFlagUturn NavFlag = "uturn" ) -func (n *NavigationService) SetFlag(flag string) error { +func (n *NavigationService) SetFlag(flag NavFlag) error { log.Debug().Str("func", "SetFlag").Msg("Sending flag") if err := n.dev.checkStatus(n.flagsChar, NavFlagsChar); err != nil { return err