diff options
| author | JF <jf@codingfield.com> | 2020-10-21 20:15:02 (GMT) |
|---|---|---|
| committer | JF <jf@codingfield.com> | 2020-10-21 20:15:02 (GMT) |
| commit | cabf1168d429db84b0985e25881ead86d80dde3c (patch) | |
| tree | 42f5187cd7de9e947cfe839761cf17662be8210e /src/components/ble/NotificationManager.h | |
| parent | 440ae412b9ce9c868aa8b98e6da537bd0ec62de7 (diff) | |
Notifications : Fix display of notification index/number.
Diffstat (limited to 'src/components/ble/NotificationManager.h')
| -rw-r--r-- | src/components/ble/NotificationManager.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/ble/NotificationManager.h b/src/components/ble/NotificationManager.h index e4e2b4d..64c6df6 100644 --- a/src/components/ble/NotificationManager.h +++ b/src/components/ble/NotificationManager.h @@ -15,7 +15,6 @@ namespace Pinetime { Id id; bool valid = false; uint8_t index; - uint8_t number = TotalNbNotifications; std::array<char, MessageSize+1> message; Categories category = Categories::Unknown; }; @@ -29,6 +28,7 @@ namespace Pinetime { bool AreNewNotificationsAvailable(); static constexpr uint8_t MaximumMessageSize() { return MessageSize; }; + size_t NbNotifications() const; private: Notification::Id GetNextId(); |
