From e8ac6af67edb544cd328aa4e73edc4a9b540394e Mon Sep 17 00:00:00 2001 From: David Cermak Date: Tue, 23 Apr 2024 09:22:44 +0200 Subject: [PATCH] fix(esp_netif): Fix per pppos callback update in new lwip --- components/esp_netif/lwip/esp_netif_lwip_ppp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/esp_netif/lwip/esp_netif_lwip_ppp.c b/components/esp_netif/lwip/esp_netif_lwip_ppp.c index 26e90560e4..41a6ec9cc5 100644 --- a/components/esp_netif/lwip/esp_netif_lwip_ppp.c +++ b/components/esp_netif/lwip/esp_netif_lwip_ppp.c @@ -175,9 +175,9 @@ static void on_ppp_notify_phase(ppp_pcb *pcb, u8_t phase, void *ctx) * * @return uint32_t Length of data successfully sent */ -static uint32_t pppos_low_level_output(ppp_pcb *pcb, uint8_t *data, uint32_t len, void *netif) +static uint32_t pppos_low_level_output(ppp_pcb *pcb, const void *data, uint32_t len, void *netif) { - esp_err_t ret = esp_netif_transmit(netif, data, len); + esp_err_t ret = esp_netif_transmit(netif, (void*)data, len); if (ret == ESP_OK) { return len; }