summaryrefslogtreecommitdiff
path: root/src/components/ble/NotificationManager.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-10-21 17:31:56 +0200
committerJF <jf@codingfield.com>2020-10-21 17:31:56 +0200
commit440ae412b9ce9c868aa8b98e6da537bd0ec62de7 (patch)
treea4800f9992e35fe22d0acb1e0136c35133abbad4 /src/components/ble/NotificationManager.h
parentef5670c7e09a1a63fc5df4a066472ed7fe7550ff (diff)
Increase max size of notification message to 100 char.
Fix bug in message handling that would ignore the last character of the notification.
Diffstat (limited to 'src/components/ble/NotificationManager.h')
-rw-r--r--src/components/ble/NotificationManager.h3
1 files changed, 2 insertions, 1 deletions
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();