Diff between a7e4f63111bd3294ba99418273024084265c6678 and c06fbc2b562c69654b60f7f82b170f573a8abab5
Changed Files
| File | Additions | Deletions | Status |
| tools/btgatt-client.c | +2 | -2 | modified |
Full Patch
diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c
index b7bfa24..e7cd31c 100644
--- a/tools/btgatt-client.c
+++ b/tools/btgatt-client.c
@@ -486,8 +486,8 @@ static void cmd_read_long_value(struct client *cli, char *cmd_str)
}
endptr = NULL;
- offset = strtol(argv[1], &endptr, 16);
- if (!endptr || *endptr != '\0' || !handle) {
+ offset = strtol(argv[1], &endptr, 10);
+ if (!endptr || *endptr != '\0') {
printf("Invalid offset: %s\n", argv[1]);
return;
}