1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

Merge pull request #12956 from haukepetersen/fix_example_nimblegattnodevelhelp

examples/nimble_x: fix building without DEVELHELP
This commit is contained in:
Hauke Petersen 2019-12-16 13:43:19 +01:00 committed by GitHub
commit 50c2a2ca06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -310,6 +310,7 @@ int main(void)
puts("NimBLE GATT Server Example");
int rc = 0;
(void)rc;
/* verify and add our custom services */
rc = ble_gatts_count_cfg(gatt_svr_svcs);

View File

@ -286,6 +286,7 @@ static void _hr_update(event_t *e)
assert(om != NULL);
int res = ble_gattc_notify_custom(_conn_handle, _hrs_val_handle, om);
assert(res == 0);
(void)res;
/* schedule next update event */
event_timeout_set(&_update_timeout_evt, UPDATE_INTERVAL);
@ -296,6 +297,7 @@ int main(void)
puts("NimBLE Heart Rate Sensor Example");
int res = 0;
(void)res;
/* setup local event queue (for handling heart rate updates) */
event_queue_init(&_eq);