From 62987fa31bd20e17278c83e777047b185d117fef Mon Sep 17 00:00:00 2001 From: Yannick Ulrich Date: Fri, 21 Oct 2022 22:47:28 +0100 Subject: [PATCH] Added navigation event to device state --- infinitime.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/infinitime.go b/infinitime.go index 964a93d..247f93e 100644 --- a/infinitime.go +++ b/infinitime.go @@ -62,6 +62,13 @@ var charNames = map[string]string{ NavProgressChar: "Navigation Progress", } +type NavigationEvent struct { + flag string + narrative string + dist string + progress uint8 +} + type Device struct { device *device.Device1 navflagsChar *gatt.GattCharacteristic1 @@ -83,6 +90,7 @@ type Device struct { notifEventDone bool Music MusicCtrl DFU DFU + navigationEv NavigationEvent } var (