mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #6058 from pan-/fix-gap-type-static
Ble: fix size function in advertising_data_t and address_t.pull/5742/merge
commit
cf60266584
|
@ -473,7 +473,7 @@ struct address_t {
|
|||
/**
|
||||
* Size in byte of a mac address.
|
||||
*/
|
||||
static uint8_t size() {
|
||||
uint8_t size() const {
|
||||
return sizeof(value);
|
||||
}
|
||||
|
||||
|
@ -543,7 +543,7 @@ struct advertising_data_t {
|
|||
/**
|
||||
* Return (fixed) size of advertising data.
|
||||
*/
|
||||
static uint8_t size() {
|
||||
uint8_t size() const {
|
||||
return sizeof(value);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue