summaryrefslogtreecommitdiff
path: root/src/BLE/BleManager.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-03-06 21:50:29 +0100
committerJF <jf@codingfield.com>2020-03-06 21:50:29 +0100
commit4ffd8d1c91ce7c985e673182c142d5f191b0d3ee (patch)
treee4bbbba640db753573fd67e3ef94b719d984e859 /src/BLE/BleManager.h
parentfd45746b8cdb13dc7b0bfc175b5d5829bcdd8a07 (diff)
Call ble_manager_init_peer_manager() _after_ the scheduler has been started. This fixes an issue that would prevent the firmware from running correctly after a full reset or after the flashing of the firmware.
Before this fix, ble_manager_init_peer_manager() was called before the scheduler, which trigged an assert in an IRQ routine.
Diffstat (limited to 'src/BLE/BleManager.h')
-rw-r--r--src/BLE/BleManager.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/BLE/BleManager.h b/src/BLE/BleManager.h
index 68fdff9a..4424d665 100644
--- a/src/BLE/BleManager.h
+++ b/src/BLE/BleManager.h
@@ -34,6 +34,7 @@ extern "C" {
void ble_manager_init();
void ble_manager_start_advertising(void *p_erase_bonds);
+void ble_manager_init_peer_manager();
// TODO use signals from RTOS to notify new time
void ble_manager_set_new_time_callback(void (*OnNewTime)(current_time_char_t* currentTime));