From 51e1c76b4ab004b26749061f6aa550ad8fb3138d Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Tue, 17 Apr 2018 14:03:20 +0100 Subject: [PATCH] BLE: Set default mac address to all 00. --- features/FEATURE_BLE/ble/BLETypes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/FEATURE_BLE/ble/BLETypes.h b/features/FEATURE_BLE/ble/BLETypes.h index 41e4c99f13..0c4c894eb3 100644 --- a/features/FEATURE_BLE/ble/BLETypes.h +++ b/features/FEATURE_BLE/ble/BLETypes.h @@ -426,10 +426,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)); } /**