diff options
author | JF <jf@codingfield.com> | 2020-03-06 21:50:29 +0100 |
---|---|---|
committer | JF <jf@codingfield.com> | 2020-03-06 21:50:29 +0100 |
commit | 4ffd8d1c91ce7c985e673182c142d5f191b0d3ee (patch) | |
tree | e4bbbba640db753573fd67e3ef94b719d984e859 /src/BLE/BleManager.h | |
parent | fd45746b8cdb13dc7b0bfc175b5d5829bcdd8a07 (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.h | 1 |
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)); |