From c67c3aa14e096684c8871ba727f768ffccd83784 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Fri, 10 Jan 2020 16:45:28 +0800 Subject: [PATCH] pppos_client: Fix power_down dce immediately after got IP This was accidently commited bug when convert to use esp-netif, fix it. Fixes: 25913af2cc12 ("pppos_client: udated example code to use esp-netif in PPP configuration") Signed-off-by: Axel Lin Merges https://github.com/espressif/esp-idf/pull/4618 --- examples/protocols/pppos_client/main/pppos_client_main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/protocols/pppos_client/main/pppos_client_main.c b/examples/protocols/pppos_client/main/pppos_client_main.c index 05e6e6cc0..a6eea822d 100644 --- a/examples/protocols/pppos_client/main/pppos_client_main.c +++ b/examples/protocols/pppos_client/main/pppos_client_main.c @@ -263,7 +263,6 @@ void app_main(void) esp_netif_attach(esp_netif, modem_netif_adapter); /* Wait for IP address */ xEventGroupWaitBits(event_group, CONNECT_BIT, pdTRUE, pdTRUE, portMAX_DELAY); - ESP_ERROR_CHECK(dce->power_down(dce)); /* Config MQTT */ esp_mqtt_client_config_t mqtt_config = { .uri = BROKER_URL,