Skip to content

Commit

Permalink
Fixes InfiniTimeOrg#1895: use just 2 bytes header according to GATT s…
Browse files Browse the repository at this point in the history
…pecification
  • Loading branch information
jmlich committed Dec 28, 2023
1 parent f17bbc3 commit 277089a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ble/AlertNotificationService.cpp
Expand Up @@ -47,7 +47,7 @@ AlertNotificationService::AlertNotificationService(System::SystemTask& systemTas
int AlertNotificationService::OnAlert(struct ble_gatt_access_ctxt* ctxt) {
if (ctxt->op == BLE_GATT_ACCESS_OP_WRITE_CHR) {
constexpr size_t stringTerminatorSize = 1; // end of string '\0'
constexpr size_t headerSize = 3;
constexpr size_t headerSize = 2;
const auto maxMessageSize {NotificationManager::MaximumMessageSize()};
const auto maxBufferSize {maxMessageSize + headerSize};

Expand Down

0 comments on commit 277089a

Please sign in to comment.