Skip to content
Snippets Groups Projects
Commit 2dacb9de authored by schneider's avatar schneider
Browse files

fix(mp-ble): Only process relevant ATT messages

parent e842067b
No related branches found
No related tags found
No related merge requests found
Pipeline #5127 failed
...@@ -25,6 +25,7 @@ static int next_handle = ATTS_DYN_START_HANDLE; ...@@ -25,6 +25,7 @@ static int next_handle = ATTS_DYN_START_HANDLE;
void ble_epic_att_api_event(attEvt_t *att_event) void ble_epic_att_api_event(attEvt_t *att_event)
{ {
if(att_event->handle >= ATTS_DYN_START_HANDLE && att_event->handle < next_handle) {
attEvt_t *e = WsfBufAlloc(sizeof(*e)); attEvt_t *e = WsfBufAlloc(sizeof(*e));
if (e) { if (e) {
...@@ -34,6 +35,7 @@ void ble_epic_att_api_event(attEvt_t *att_event) ...@@ -34,6 +35,7 @@ void ble_epic_att_api_event(attEvt_t *att_event)
LOG_WARN("ble", "could not allocate att event"); LOG_WARN("ble", "could not allocate att event");
} }
} }
}
void ble_epic_att_api_free_att_write_data(struct epic_att_write *w) void ble_epic_att_api_free_att_write_data(struct epic_att_write *w)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment