tool/compile_gatt: fix database hash calculation for Characteristic handle

This commit is contained in:
Matthias Ringwald 2021-05-03 14:30:24 +02:00
parent 8c70002d7d
commit 3c5d40722c

View File

@ -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