Bluetooth Central: Discovery of 128bit primary service fails with later versions of gcc. #22051
Labels
area: Bluetooth
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
Describe the bug
Discovery of 128bit primary service fails with later versions of gcc.
In gatt_find_type(), looks like macro BT_UUID_16 returns wrong value with later gcc versions.
Using gcc ARM version 7.3.1 (BT_UUID_16(uuid)->val) returns 0x2800 (which is correct)
Using gcc ARM version 9.2.1 (BT_UUID_16(uuid)->val) returns 0x2000 (which is incorrect) and leads to a failed discovery.
To Reproduce
Attempt a discovery of a 128bit primary service when configured as a central.
A Ellisys trace is attached showing the Find by value request going out as RFCOMM???
DiscoveryFailGCCNew012020.zip
Environment (please complete the following information):
DiscoveryFailGCCNew012020.zip
The text was updated successfully, but these errors were encountered: