From 440ae412b9ce9c868aa8b98e6da537bd0ec62de7 Mon Sep 17 00:00:00 2001 From: JF Date: Wed, 21 Oct 2020 17:31:56 +0200 Subject: Increase max size of notification message to 100 char. Fix bug in message handling that would ignore the last character of the notification. --- src/components/ble/NotificationManager.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/components/ble/NotificationManager.h') diff --git a/src/components/ble/NotificationManager.h b/src/components/ble/NotificationManager.h index 6bf689a8..e4e2b4d4 100644 --- a/src/components/ble/NotificationManager.h +++ b/src/components/ble/NotificationManager.h @@ -8,7 +8,7 @@ namespace Pinetime { class NotificationManager { public: enum class Categories {Unknown, SimpleAlert, Email, News, IncomingCall, MissedCall, Sms, VoiceMail, Schedule, HighProriotyAlert, InstantMessage }; - static constexpr uint8_t MessageSize{18}; + static constexpr uint8_t MessageSize{100}; struct Notification { using Id = uint8_t; @@ -28,6 +28,7 @@ namespace Pinetime { bool ClearNewNotificationFlag(); bool AreNewNotificationsAvailable(); + static constexpr uint8_t MaximumMessageSize() { return MessageSize; }; private: Notification::Id GetNextId(); -- cgit v1.2.3-70-g09d2