Diff between 06ba8f9321e1b273bb58be74ee1375139ae171e1 and 40c05ce909c5f76903231fdcd36c65cfad330ac1

Changed Files

File Additions Deletions Status
android/client/if-gatt.c +2 -1 modified

Full Patch

diff --git a/android/client/if-gatt.c b/android/client/if-gatt.c
index f6e6327..652c0f8 100644
--- a/android/client/if-gatt.c
+++ b/android/client/if-gatt.c
@@ -40,10 +40,11 @@ const btgatt_interface_t *if_gatt = NULL;
 #define MAX_READ_PARAMS_STR_LEN (MAX_SRVC_ID_STR_LEN + MAX_CHAR_ID_STR_LEN \
 		+ MAX_UUID_STR_LEN + MAX_HEX_VAL_STR_LEN + 80)
 
+/* Hex arguments must have "0x" or "0X" prefix */
 #define VERIFY_INT_ARG(n, v, err) \
 	do { \
 		if (n < argc) \
-			v = atoi(argv[n]); \
+			v = strtol(argv[n], NULL, 0); \
 		else { \
 			haltest_error(err); \
 			return;\