@@ -282,7 +282,7 @@ STATIC void btstack_packet_handler_att_server(uint8_t packet_type, uint16_t chan
282
282
}
283
283
}
284
284
285
- #if MICROPY_BLUETOOTH_BTSTACK_ZEPHYR_STATIC_ADDRESS
285
+ #if MICROPY_BLUETOOTH_USE_ZEPHYR_STATIC_ADDRESS
286
286
// During startup, the controller (e.g. Zephyr) might give us a static address that we can use.
287
287
STATIC uint8_t controller_static_addr [6 ] = {0 };
288
288
STATIC bool controller_static_addr_available = false;
@@ -349,13 +349,13 @@ STATIC void btstack_packet_handler(uint8_t packet_type, uint8_t *packet, uint8_t
349
349
DEBUG_printf (" --> hci transport packet sent\n" );
350
350
} else if (event_type == HCI_EVENT_COMMAND_COMPLETE ) {
351
351
DEBUG_printf (" --> hci command complete\n" );
352
- #if MICROPY_BLUETOOTH_BTSTACK_ZEPHYR_STATIC_ADDRESS
352
+ #if MICROPY_BLUETOOTH_USE_ZEPHYR_STATIC_ADDRESS
353
353
if (memcmp (packet , read_static_address_command_complete_prefix , sizeof (read_static_address_command_complete_prefix )) == 0 ) {
354
354
DEBUG_printf (" --> static address available\n" );
355
355
reverse_48 (& packet [7 ], controller_static_addr );
356
356
controller_static_addr_available = true;
357
357
}
358
- #endif // MICROPY_BLUETOOTH_BTSTACK_ZEPHYR_STATIC_ADDRESS
358
+ #endif // MICROPY_BLUETOOTH_USE_ZEPHYR_STATIC_ADDRESS
359
359
} else if (event_type == HCI_EVENT_COMMAND_STATUS ) {
360
360
DEBUG_printf (" --> hci command status\n" );
361
361
} else if (event_type == HCI_EVENT_NUMBER_OF_COMPLETED_PACKETS ) {
@@ -575,12 +575,12 @@ STATIC bool set_public_address(void) {
575
575
}
576
576
577
577
STATIC void set_random_address (void ) {
578
- #if MICROPY_BLUETOOTH_BTSTACK_ZEPHYR_STATIC_ADDRESS
578
+ #if MICROPY_BLUETOOTH_USE_ZEPHYR_STATIC_ADDRESS
579
579
if (controller_static_addr_available ) {
580
580
DEBUG_printf ("set_random_address: Using static address supplied by controller.\n" );
581
581
gap_random_address_set (controller_static_addr );
582
582
} else
583
- #endif // MICROPY_BLUETOOTH_BTSTACK_ZEPHYR_STATIC_ADDRESS
583
+ #endif // MICROPY_BLUETOOTH_USE_ZEPHYR_STATIC_ADDRESS
584
584
{
585
585
bd_addr_t static_addr ;
586
586
@@ -635,7 +635,7 @@ int mp_bluetooth_init(void) {
635
635
636
636
btstack_memory_init ();
637
637
638
- #if MICROPY_BLUETOOTH_BTSTACK_ZEPHYR_STATIC_ADDRESS
638
+ #if MICROPY_BLUETOOTH_USE_ZEPHYR_STATIC_ADDRESS
639
639
controller_static_addr_available = false;
640
640
#endif
641
641
0 commit comments