From e292f40715bea8ee8612409f624da49ac4c4898c Mon Sep 17 00:00:00 2001 From: "matthias.ringwald" Date: Tue, 10 Jun 2014 19:24:46 +0000 Subject: [PATCH] fix parsing of strings used as Characteristic Values --- ble/compile-gatt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ble/compile-gatt.py b/ble/compile-gatt.py index 6b8cda8df..b3bceadfd 100755 --- a/ble/compile-gatt.py +++ b/ble/compile-gatt.py @@ -281,7 +281,7 @@ def parseCharacteristic(fout, parts): size = 2 + 2 + 2 + uuid_size if is_string(value): - size = size + len(value) - 2 + size = size + len(value) else: size = size + len(value.split())