diff options
author | Arman Uguray <armansito@chromium.org> | 2014-10-27 07:35:40 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-10-28 14:25:32 +0200 |
commit | 574c53b3ecae9c446f0ac514d5d210288bc8606c (patch) | |
tree | 1d62ef3b2000f78857e32977128a45840058945c /tools/btgatt-client.c | |
parent | 2aa6f6fb96676f87b6434ff3f57b6a218da8c56e (diff) | |
download | bluez-574c53b3ecae9c446f0ac514d5d210288bc8606c.tar.gz |
tools/btgatt-client: Print prompt on service changed.
The service changed handler now prints the command line prompt if the
changed service list empty.
Diffstat (limited to 'tools/btgatt-client.c')
-rw-r--r-- | tools/btgatt-client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c index ea9acb77e..5eedfd0a8 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); |