Skip to content

Commit 3cb628d

Browse files
committed
fix nrf build
1 parent f30d3ba commit 3cb628d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ports/nrf/common-hal/_bleio/Adapter.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
#include "shared-bindings/time/__init__.h"
5454

5555
#if CIRCUITPY_OS_GETENV
56-
#include "shared-bindings/os/getenv.h"
56+
#include "shared-bindings/os/__init__.h"
5757
#endif
5858

5959
#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) {
346346
mp_int_t name_len = 0;
347347

348348
#if CIRCUITPY_OS_GETENV
349-
mp_obj_t ble_name = common_hal_os_environ_get_key("CIRCUITPY_BLE_NAME");
349+
mp_obj_t ble_name = common_hal_os_getenv("CIRCUITPY_BLE_NAME", mp_const_none);
350350
if (ble_name != mp_const_none) {
351351
common_hal_bleio_adapter_set_name(self, mp_obj_str_get_str(ble_name));
352352
return;

0 commit comments

Comments
 (0)