mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-16 22:21:21 +00:00
tool/compile_gatt: fix database hash calculation for Characteristic handle
This commit is contained in:
parent
8c70002d7d
commit
3c5d40722c
@ -537,7 +537,6 @@ def parseCharacteristic(fout, parts):
|
||||
write_16(fout, handle+1)
|
||||
write_uuid(fout, uuid)
|
||||
fout.write("\n")
|
||||
handle = handle + 1
|
||||
total_size = total_size + size
|
||||
|
||||
database_hash_append_uint16(handle)
|
||||
@ -546,6 +545,8 @@ def parseCharacteristic(fout, parts):
|
||||
database_hash_append_uint16(handle+1)
|
||||
database_hash_append_value(uuid)
|
||||
|
||||
handle = handle + 1
|
||||
|
||||
uuid_is_database_hash = len(uuid) == 2 and uuid[0] == 0x2a and uuid[1] == 0x2b
|
||||
|
||||
size = 2 + 2 + 2 + uuid_size
|
||||
|
Loading…
Reference in New Issue
Block a user