Bluetooth: shell: gatt_read: Reset offset to 0
Unless offset was specified, it should default to 0, whereas previously, value from the last command was used. Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
This commit is contained in:
parent
4f67a6c76d
commit
0592c0ce59
1 changed files with 1 additions and 0 deletions
|
@ -235,6 +235,7 @@ int cmd_gatt_read(int argc, char *argv[])
|
|||
|
||||
read_params.handle_count = 1;
|
||||
read_params.single.handle = strtoul(argv[1], NULL, 16);
|
||||
read_params.single.offset = 0;
|
||||
|
||||
if (argc > 2) {
|
||||
read_params.single.offset = strtoul(argv[2], NULL, 16);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue