Use a bitmask instead of an array of bools in the SDP UUID List matching algorithm to reduce the compiled code size and stack used.
This commit is contained in:
parent
e621ab33be
commit
559af02204
2 changed files with 17 additions and 18 deletions
|
@ -218,7 +218,7 @@
|
|||
|
||||
static bool SDP_SearchServiceTable(uint8_t UUIDList[][UUID_SIZE_BYTES], const uint8_t TotalUUIDs,
|
||||
const ServiceAttributeTable_t* CurrAttributeTable);
|
||||
static void SDP_CheckUUIDMatch(uint8_t UUIDList[][UUID_SIZE_BYTES], const uint8_t TotalUUIDs, bool UUIDMatch[],
|
||||
static void SDP_CheckUUIDMatch(uint8_t UUIDList[][UUID_SIZE_BYTES], const uint8_t TotalUUIDs, uint16_t* UUIDMatchFlags,
|
||||
const void* CurrAttribute);
|
||||
|
||||
static uint8_t SDP_GetAttributeList(uint16_t AttributeList[][2], const void** const CurrentParameter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue