Diff between 2aa6f6fb96676f87b6434ff3f57b6a218da8c56e and 574c53b3ecae9c446f0ac514d5d210288bc8606c
Changed Files
| File | Additions | Deletions | Status |
| tools/btgatt-client.c | +4 | -1 | modified |
Full Patch
diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c
index ea9acb7..5eedfd0 100644
--- a/tools/btgatt-client.c
+++ b/tools/btgatt-client.c
@@ -304,8 +304,11 @@ static void service_changed_cb(uint16_t start_handle, uint16_t end_handle,
printf("\nService Changed handled - start: 0x%04x end: 0x%04x\n",
start_handle, end_handle);
- if (!bt_gatt_service_iter_next_by_handle(&iter, start_handle, &service))
+ if (!bt_gatt_service_iter_next_by_handle(&iter, start_handle,
+ &service)) {
+ print_prompt();
return;
+ }
print_service(service);