@@ -256,8 +256,8 @@ void supervisor_start_web_workflow(void) {
256256 return ;
257257 }
258258
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 ) {
261261 return ;
262262 }
263263
@@ -283,7 +283,7 @@ void supervisor_start_web_workflow(void) {
283283
284284 mp_int_t new_port = web_api_port ;
285285 // (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 );
287287
288288 bool first_start = pool .base .type != & socketpool_socketpool_type ;
289289 bool port_changed = new_port != web_api_port ;
@@ -320,8 +320,8 @@ void supervisor_start_web_workflow(void) {
320320
321321
322322 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 ) {
325325 _api_password [0 ] = ':' ;
326326 _base64_in_place (_api_password , strlen (_api_password ), sizeof (_api_password ) - 1 );
327327 }
0 commit comments