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
Vincent Coubard 2018-05-01 11:17:47 +01:00
parent 80941af0f6
commit c4b78ada0e
1 changed files with 2 additions and 2 deletions

View File

@ -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));
}
/**