diff options
author | Jean-François Milants <jf@codingfield.com> | 2021-04-04 12:10:47 +0200 |
---|---|---|
committer | Jean-François Milants <jf@codingfield.com> | 2021-04-04 12:10:47 +0200 |
commit | 03de1c67393fcb99b5987514be6f470349c57c0f (patch) | |
tree | 5eacb0614b667ff62f417c390109482ed7e0a07d /src/components/ble/NavigationService.cpp | |
parent | 58a2d000c4d49d96121894d6dd6bb861d7564bea (diff) |
Add support for notification title. The notification buffer must contain the title and the message separated by a '\0' character.
If the buffer does not contain any \0, the whole buffer is considered to be the message of the notification. A default title will be displayed in the notification app.
Diffstat (limited to 'src/components/ble/NavigationService.cpp')
-rw-r--r-- | src/components/ble/NavigationService.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/components/ble/NavigationService.cpp b/src/components/ble/NavigationService.cpp index 3c1fd162..545c44da 100644 --- a/src/components/ble/NavigationService.cpp +++ b/src/components/ble/NavigationService.cpp @@ -101,7 +101,6 @@ int Pinetime::Controllers::NavigationService::OnCommand(uint16_t conn_handle, ui data[notifSize] = '\0'; os_mbuf_copydata(ctxt->om, 0, notifSize, data); char *s = (char *) &data[0]; - NRF_LOG_INFO("DATA : %s", s); if (ble_uuid_cmp(ctxt->chr->uuid, (ble_uuid_t *) &navFlagCharUuid) == 0) { m_flag = s; } else if (ble_uuid_cmp(ctxt->chr->uuid, (ble_uuid_t *) &navNarrativeCharUuid) == 0) { |