diff options
| author | JF <jf@codingfield.com> | 2020-06-16 18:36:24 (GMT) |
|---|---|---|
| committer | JF <jf@codingfield.com> | 2020-06-16 18:36:24 (GMT) |
| commit | 9898fed80634c99c9dbe8ee8682dfdc259463654 (patch) | |
| tree | 4be094c1e2c3a2b73b8c7b924fbd793ba416aa63 /src/Components/Ble/DfuService.cpp | |
| parent | fab220d0b9c6868b4fa96ce5f3e3f41b5454a0c7 (diff) | |
Update to nimble 1.3.0 + WIP : debug BLE connection issue with android phones.
Diffstat (limited to 'src/Components/Ble/DfuService.cpp')
| -rw-r--r-- | src/Components/Ble/DfuService.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Components/Ble/DfuService.cpp b/src/Components/Ble/DfuService.cpp index ff899e6..c6d8493 100644 --- a/src/Components/Ble/DfuService.cpp +++ b/src/Components/Ble/DfuService.cpp @@ -74,8 +74,12 @@ DfuService::DfuService(Pinetime::System::SystemTask &systemTask, Pinetime::Contr } void DfuService::Init() { - ble_gatts_count_cfg(serviceDefinition); - ble_gatts_add_svcs(serviceDefinition); + int res; + res = ble_gatts_count_cfg(serviceDefinition); + ASSERT(res == 0); + + res = ble_gatts_add_svcs(serviceDefinition); + ASSERT(res == 0); } int DfuService::OnServiceData(uint16_t connectionHandle, uint16_t attributeHandle, ble_gatt_access_ctxt *context) { |
