From 72b558707ee3096d4a77d262025c3bf695073fcf Mon Sep 17 00:00:00 2001 From: Arsen 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