Use NavFlag type in SetFlag()

master
Arsen Musayelyan 3 months ago
parent 31f4c51a61
commit 72b558707e

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

Loading…
Cancel
Save