mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-10 21:47:04 +03:00
set timeout for ethernet/dhcp to 30s
This commit is contained in:
@@ -237,13 +237,13 @@ static state_machine_result_t NETWORK_INSTANTIATED_STATE_handler(state_machine_t
|
|||||||
ESP_LOGD(TAG, "sta_polling_min_ms set to %d", nm->sta_polling_min_ms);
|
ESP_LOGD(TAG, "sta_polling_min_ms set to %d", nm->sta_polling_min_ms);
|
||||||
FREE_AND_NULL(valuestr);
|
FREE_AND_NULL(valuestr);
|
||||||
}
|
}
|
||||||
valuestr=config_alloc_get_default(NVS_TYPE_STR,"ethtmout","8",0);
|
valuestr=config_alloc_get_default(NVS_TYPE_STR,"ethtmout","30",0);
|
||||||
if (valuestr) {
|
if (valuestr) {
|
||||||
nm->eth_link_down_reboot_ms = atoi(valuestr)*1000;
|
nm->eth_link_down_reboot_ms = atoi(valuestr)*1000;
|
||||||
ESP_LOGD(TAG, "ethtmout set to %d", nm->eth_link_down_reboot_ms);
|
ESP_LOGD(TAG, "ethtmout set to %d", nm->eth_link_down_reboot_ms);
|
||||||
FREE_AND_NULL(valuestr);
|
FREE_AND_NULL(valuestr);
|
||||||
}
|
}
|
||||||
valuestr=config_alloc_get_default(NVS_TYPE_STR,"dhcp_tmout","8",0);
|
valuestr=config_alloc_get_default(NVS_TYPE_STR,"dhcp_tmout","30",0);
|
||||||
if(valuestr){
|
if(valuestr){
|
||||||
nm->dhcp_timeout = atoi(valuestr)*1000;
|
nm->dhcp_timeout = atoi(valuestr)*1000;
|
||||||
ESP_LOGD(TAG, "dhcp_timeout set to %d", nm->dhcp_timeout);
|
ESP_LOGD(TAG, "dhcp_timeout set to %d", nm->dhcp_timeout);
|
||||||
|
|||||||
Reference in New Issue
Block a user