mirror of https://github.com/ARMmbed/mbed-os.git
BLE: Set default mac address to 00:00:00:00:00:00
Both mac addresses are invalid but the bluetooth specification prefers to use all 0 addresses to represent an invalid address.pull/6932/head
parent
80941af0f6
commit
c4b78ada0e
|
@ -427,10 +427,10 @@ typedef uint32_t sign_count_t;
|
|||
*/
|
||||
struct address_t : public byte_array_t<6> {
|
||||
/**
|
||||
* Create an invalid mac address, equal to FF:FF:FF:FF:FF:FF
|
||||
* Create an invalid mac address, equal to 00:00:00:00:00:00
|
||||
*/
|
||||
address_t() {
|
||||
memset(_value, 0xFF, sizeof(_value));
|
||||
memset(_value, 0x00, sizeof(_value));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue