diff options
| author | JF <jf@codingfield.com> | 2020-06-27 14:20:08 (GMT) |
|---|---|---|
| committer | Gitea <gitea@fake.local> | 2020-06-27 14:20:08 (GMT) |
| commit | 49bf12390bb27ca22a3cc5f472027344befc455e (patch) | |
| tree | 0a943e544cdb60565af9a5d6bfe6e372299068cb /src/Components/Ble/DeviceInformationService.cpp | |
| parent | 3a49bbbae48a62d5252fee0cb6d04002d917c820 (diff) | |
| parent | 4f9adb2372a71bab3c38684420cf90b1a99a6c9a (diff) | |
Merge branch 'develop' of JF/PineTime into master
Diffstat (limited to 'src/Components/Ble/DeviceInformationService.cpp')
| -rw-r--r-- | src/Components/Ble/DeviceInformationService.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Components/Ble/DeviceInformationService.cpp b/src/Components/Ble/DeviceInformationService.cpp index 3099b1b..c1d5554 100644 --- a/src/Components/Ble/DeviceInformationService.cpp +++ b/src/Components/Ble/DeviceInformationService.cpp @@ -15,8 +15,12 @@ int DeviceInformationCallback(uint16_t conn_handle, uint16_t attr_handle, struct } void DeviceInformationService::Init() { - ble_gatts_count_cfg(serviceDefinition); - ble_gatts_add_svcs(serviceDefinition); + int res = 0; + res = ble_gatts_count_cfg(serviceDefinition); + ASSERT(res == 0); + + res = ble_gatts_add_svcs(serviceDefinition); + ASSERT(res == 0); } |
