Skip to content
Snippets Groups Projects
Commit 983d8136 authored by schneider's avatar schneider
Browse files

Merge branch 'schneider/ble-fixes-2021-1' into 'master'

BLE fixes

See merge request card10/firmware!454
parents 09fd7099 11a29eaa
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,7 @@ void ble_epic_att_api_event(attEvt_t *att_event)
if (e) {
memcpy(e, att_event, sizeof(*e));
memcpy(e + 1, att_event->pValue, value_len);
e->pValue = (uint8_t *)(e + 1);
ble_epic_ble_api_trigger_event(BLE_EVENT_ATT_EVENT, e);
} else {
LOG_WARN(
......
......@@ -2,7 +2,7 @@
#include "epicardium.h"
#include "modules/log.h"
#include "api/interrupt-sender.h"
#include "modules/modules.h"
#include "wsf_buf.h"
#include "app_api.h"
......@@ -59,7 +59,7 @@ void ble_epic_ble_api_trigger_event(enum epic_ble_event_type type, void *data)
epic_ble_free_event(&e);
}
api_interrupt_trigger(EPIC_INT_BLE);
interrupt_trigger(EPIC_INT_BLE);
} else {
epic_ble_free_event(&e);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment