fix ci with 832
This commit is contained in:
1 parent
223fc01b81
commit
00cbb9bf17
1 file changed
+7
-1
@@ -49,6 +49,12 @@
|
||||
#define CFG_SOC_TASK_STACKSIZE (200)
|
||||
#endif
|
||||
|
||||
#ifdef USB_PRODUCT
|
||||
#define CFG_DEFAULT_NAME USB_PRODUCT
|
||||
#else
|
||||
#define CFG_DEFAULT_NAME "Feather nRF52832"
|
||||
#endif
|
||||
|
||||
#ifdef USE_TINYUSB
|
||||
#include "nrfx_power.h"
|
||||
|
||||
@@ -454,7 +460,7 @@ bool AdafruitBluefruit::begin(uint8_t prph_count, uint8_t central_count)
|
||||
|
||||
// Default device name
|
||||
ble_gap_conn_sec_mode_t sec_mode = BLE_SECMODE_OPEN;
|
||||
VERIFY_STATUS(sd_ble_gap_device_name_set(&sec_mode, (uint8_t const *) USB_PRODUCT, strlen(USB_PRODUCT)), false);
|
||||
VERIFY_STATUS(sd_ble_gap_device_name_set(&sec_mode, (uint8_t const *) CFG_DEFAULT_NAME, strlen(CFG_DEFAULT_NAME)), false);
|
||||
|
||||
// Init Central role
|
||||
if (_central_count) Central.begin();
|
||||
|
||||
Reference in new issue
Block a user