forked from Elara6331/infinitime
Use NavFlag type in SetFlag()
This commit is contained in:
parent
4479cad6f9
commit
0f12aee5e9
@ -118,7 +118,7 @@ const (
|
|||||||
NavFlagUturn NavFlag = "uturn"
|
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")
|
log.Debug().Str("func", "SetFlag").Msg("Sending flag")
|
||||||
if err := n.dev.checkStatus(n.flagsChar, NavFlagsChar); err != nil {
|
if err := n.dev.checkStatus(n.flagsChar, NavFlagsChar); err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user