mirror of https://github.com/ARMmbed/mbed-os.git
Ble: fix size function in advertising_data_t and address_t.
parent
04f0f2b1aa
commit
2e64b710a1
|
@ -473,7 +473,7 @@ struct address_t {
|
||||||
/**
|
/**
|
||||||
* Size in byte of a mac address.
|
* Size in byte of a mac address.
|
||||||
*/
|
*/
|
||||||
static uint8_t size() {
|
uint8_t size() const {
|
||||||
return sizeof(value);
|
return sizeof(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -543,7 +543,7 @@ struct advertising_data_t {
|
||||||
/**
|
/**
|
||||||
* Return (fixed) size of advertising data.
|
* Return (fixed) size of advertising data.
|
||||||
*/
|
*/
|
||||||
static uint8_t size() {
|
uint8_t size() const {
|
||||||
return sizeof(value);
|
return sizeof(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue