summaryrefslogtreecommitdiff
path: root/src/Components/Ble/DfuService.cpp
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-06-27 16:10:17 +0200
committerJF <jf@codingfield.com>2020-06-27 16:10:17 +0200
commitf8ffb405a23e02efd3b791730a3eb349e1d7efe4 (patch)
tree4b42e3c57dcd36229530c1f9faeadf3ca10d2781 /src/Components/Ble/DfuService.cpp
parente86991284fe5a41b913004f08f476aeeb83a71ef (diff)
parent3dfba0b90d8549d17a2aa4d228f31fbdcf803e70 (diff)
Merge branch 'nimble_1_3_0' into develop
Diffstat (limited to 'src/Components/Ble/DfuService.cpp')
-rw-r--r--src/Components/Ble/DfuService.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Components/Ble/DfuService.cpp b/src/Components/Ble/DfuService.cpp
index ff899e6f..c6d8493f 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) {