Skip to content

Commit cf60266

Browse files
authored
Merge pull request #6058 from pan-/fix-gap-type-static
Ble: fix size function in advertising_data_t and address_t.
2 parents 84ee9cc + 2e64b71 commit cf60266

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/FEATURE_BLE/ble/pal/GapTypes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ struct address_t {
473473
/**
474474
* Size in byte of a mac address.
475475
*/
476-
static uint8_t size() {
476+
uint8_t size() const {
477477
return sizeof(value);
478478
}
479479

@@ -543,7 +543,7 @@ struct advertising_data_t {
543543
/**
544544
* Return (fixed) size of advertising data.
545545
*/
546-
static uint8_t size() {
546+
uint8_t size() const {
547547
return sizeof(value);
548548
}
549549

0 commit comments

Comments
 (0)