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:
commit
50c2a2ca06
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user