Skip to content

Commit 00cbb9b

Browse files
committed
fix ci with 832
1 parent 223fc01 commit 00cbb9b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

libraries/Bluefruit52Lib/src/bluefruit.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@
4949
#define CFG_SOC_TASK_STACKSIZE (200)
5050
#endif
5151

52+
#ifdef USB_PRODUCT
53+
#define CFG_DEFAULT_NAME USB_PRODUCT
54+
#else
55+
#define CFG_DEFAULT_NAME "Feather nRF52832"
56+
#endif
57+
5258
#ifdef USE_TINYUSB
5359
#include "nrfx_power.h"
5460

@@ -454,7 +460,7 @@ bool AdafruitBluefruit::begin(uint8_t prph_count, uint8_t central_count)
454460

455461
// Default device name
456462
ble_gap_conn_sec_mode_t sec_mode = BLE_SECMODE_OPEN;
457-
VERIFY_STATUS(sd_ble_gap_device_name_set(&sec_mode, (uint8_t const *) USB_PRODUCT, strlen(USB_PRODUCT)), false);
463+
VERIFY_STATUS(sd_ble_gap_device_name_set(&sec_mode, (uint8_t const *) CFG_DEFAULT_NAME, strlen(CFG_DEFAULT_NAME)), false);
458464

459465
// Init Central role
460466
if (_central_count) Central.begin();

0 commit comments

Comments
 (0)