diff options
| author | JF <jf@codingfield.com> | 2020-08-19 16:04:05 +0200 |
|---|---|---|
| committer | Gitea <gitea@fake.local> | 2020-08-19 16:04:05 +0200 |
| commit | 9906a708c9fcbc13f47bdba0cb8512799a2a3719 (patch) | |
| tree | 98ad9be1bc27a4ea1b9d5ce53837c20902da96c9 /src/Components/Ble/NimbleController.cpp | |
| parent | 18686ac2cbf6b97dd0250234ce128bd9ad350d6e (diff) | |
| parent | 1e1bb1c6b7d7fdf6299c97bc11555b08f034f324 (diff) | |
Merge branch 'removeWarnings' of JF/PineTime into develop
Diffstat (limited to 'src/Components/Ble/NimbleController.cpp')
| -rw-r--r-- | src/Components/Ble/NimbleController.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Components/Ble/NimbleController.cpp b/src/Components/Ble/NimbleController.cpp index d7bbd8be..a865a824 100644 --- a/src/Components/Ble/NimbleController.cpp +++ b/src/Components/Ble/NimbleController.cpp @@ -139,14 +139,13 @@ void NimbleController::StartAdvertising() { rsp_fields.name_len = strlen("Pinetime-JF"); rsp_fields.name_is_complete = 1; - int res; - res = ble_gap_adv_set_fields(&fields); + ble_gap_adv_set_fields(&fields); // ASSERT(res == 0); // TODO this one sometimes fails with error 22 (notsync) - res = ble_gap_adv_rsp_set_fields(&rsp_fields); + ble_gap_adv_rsp_set_fields(&rsp_fields); // ASSERT(res == 0); - res = ble_gap_adv_start(addrType, NULL, 180000, + ble_gap_adv_start(addrType, NULL, 180000, &adv_params, GAPEventCallback, this); // ASSERT(res == 0);// TODO I've disabled these ASSERT as they sometime asserts and reset the mcu. // For now, the advertising is restarted as soon as it ends. There may be a race condition |
