forked from Elara6331/infinitime
Added navigation event to device state
This commit is contained in:
parent
2fbd8cb666
commit
62987fa31b
@ -62,6 +62,13 @@ var charNames = map[string]string{
|
|||||||
NavProgressChar: "Navigation Progress",
|
NavProgressChar: "Navigation Progress",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type NavigationEvent struct {
|
||||||
|
flag string
|
||||||
|
narrative string
|
||||||
|
dist string
|
||||||
|
progress uint8
|
||||||
|
}
|
||||||
|
|
||||||
type Device struct {
|
type Device struct {
|
||||||
device *device.Device1
|
device *device.Device1
|
||||||
navflagsChar *gatt.GattCharacteristic1
|
navflagsChar *gatt.GattCharacteristic1
|
||||||
@ -83,6 +90,7 @@ type Device struct {
|
|||||||
notifEventDone bool
|
notifEventDone bool
|
||||||
Music MusicCtrl
|
Music MusicCtrl
|
||||||
DFU DFU
|
DFU DFU
|
||||||
|
navigationEv NavigationEvent
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
Loading…
Reference in New Issue
Block a user