Use NavFlag type in SetFlag()

This commit is contained in:
Arsen Musayelyan 2022-11-06 20:20:15 -08:00
parent 31f4c51a61
commit 72b558707e
1 changed files with 1 additions and 1 deletions

View File

@ -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