We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f30d3ba commit 3cb628dCopy full SHA for 3cb628d
ports/nrf/common-hal/_bleio/Adapter.c
@@ -53,7 +53,7 @@
53
#include "shared-bindings/time/__init__.h"
54
55
#if CIRCUITPY_OS_GETENV
56
-#include "shared-bindings/os/getenv.h"
+#include "shared-bindings/os/__init__.h"
57
#endif
58
59
#define BLE_MIN_CONN_INTERVAL MSEC_TO_UNITS(15, UNIT_0_625_MS)
@@ -346,7 +346,7 @@ STATIC void bleio_adapter_reset_name(bleio_adapter_obj_t *self) {
346
mp_int_t name_len = 0;
347
348
349
- mp_obj_t ble_name = common_hal_os_environ_get_key("CIRCUITPY_BLE_NAME");
+ mp_obj_t ble_name = common_hal_os_getenv("CIRCUITPY_BLE_NAME", mp_const_none);
350
if (ble_name != mp_const_none) {
351
common_hal_bleio_adapter_set_name(self, mp_obj_str_get_str(ble_name));
352
return;
0 commit comments