@@ -256,8 +256,8 @@ void supervisor_start_web_workflow(void) {
256
256
return ;
257
257
}
258
258
259
- result = common_hal_os_environ_get_key_str ("CIRCUITPY_WIFI_PASSWORD" , password , sizeof (password ));
260
- if (result != ENVIRON_OK ) {
259
+ result = common_hal_os_getenv_str ("CIRCUITPY_WIFI_PASSWORD" , password , sizeof (password ));
260
+ if (result != GETENV_OK ) {
261
261
return ;
262
262
}
263
263
@@ -283,7 +283,7 @@ void supervisor_start_web_workflow(void) {
283
283
284
284
mp_int_t new_port = web_api_port ;
285
285
// (leaves new_port unchanged on any failure)
286
- (void )common_hal_os_environ_get_key_int ("CIRCUITPY_WEB_API_PORT" , & new_port );
286
+ (void )common_hal_os_getenv_int ("CIRCUITPY_WEB_API_PORT" , & new_port );
287
287
288
288
bool first_start = pool .base .type != & socketpool_socketpool_type ;
289
289
bool port_changed = new_port != web_api_port ;
@@ -320,8 +320,8 @@ void supervisor_start_web_workflow(void) {
320
320
321
321
322
322
const size_t api_password_len = sizeof (_api_password ) - 1 ;
323
- result = common_hal_os_environ_get_key_str ("CIRCUITPY_WEB_API_PASSWORD" , _api_password + 1 , api_password_len );
324
- if (result == ENVIRON_OK ) {
323
+ result = common_hal_os_getenv_str ("CIRCUITPY_WEB_API_PASSWORD" , _api_password + 1 , api_password_len );
324
+ if (result == GETENV_OK ) {
325
325
_api_password [0 ] = ':' ;
326
326
_base64_in_place (_api_password , strlen (_api_password ), sizeof (_api_password ) - 1 );
327
327
}
0 commit comments