There was an error while loading. Please reload this page.
1 parent a459eaf commit ba83f6dCopy full SHA for ba83f6d
extmod/btstack/modbluetooth_btstack.c
@@ -544,8 +544,6 @@ STATIC void set_random_address(void) {
544
545
DEBUG_printf("set_random_address: Generating static address using mp_hal_get_mac\n");
546
mp_hal_get_mac(MP_HAL_MAC_BDADDR, static_addr);
547
- // Mark it as STATIC (not RPA or NRPA).
548
- static_addr[0] |= 0xc0;
549
550
#else
551
@@ -558,6 +556,8 @@ STATIC void set_random_address(void) {
558
556
}
559
557
560
#endif // MICROPY_BLUETOOTH_USE_MP_HAL_GET_MAC_STATIC_ADDRESS
+ // Mark it as STATIC (not RPA or NRPA).
+ static_addr[0] |= 0xc0;
561
562
DEBUG_printf("set_random_address: Address generated.\n");
563
gap_random_address_set(static_addr);
0 commit comments