From 085cecb140f3437240c025226a17c3e85ea0bdd6 Mon Sep 17 00:00:00 2001 From: IhorNehrutsa Date: Tue, 21 Jan 2025 09:07:51 +0200 Subject: [PATCH] esp32/network_ppp.c: Update callback signature. Signed-off-by: IhorNehrutsa Co-Authored-By: Daniel van de Giessen --- ports/esp32/network_ppp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/esp32/network_ppp.c b/ports/esp32/network_ppp.c index 5c41cf948c1e..9ebd3d099e01 100644 --- a/ports/esp32/network_ppp.c +++ b/ports/esp32/network_ppp.c @@ -100,7 +100,7 @@ static mp_obj_t ppp_make_new(mp_obj_t stream) { } MP_DEFINE_CONST_FUN_OBJ_1(esp_network_ppp_make_new_obj, ppp_make_new); -static u32_t ppp_output_callback(ppp_pcb *pcb, u8_t *data, u32_t len, void *ctx) { +static u32_t ppp_output_callback(ppp_pcb *pcb, const void *data, u32_t len, void *ctx) { ppp_if_obj_t *self = ctx; mp_obj_t stream = self->stream; @@ -109,7 +109,7 @@ static u32_t ppp_output_callback(ppp_pcb *pcb, u8_t *data, u32_t len, void *ctx) } int err; - return mp_stream_rw(stream, data, len, &err, MP_STREAM_RW_WRITE); + return mp_stream_rw(stream, (void *)data, len, &err, MP_STREAM_RW_WRITE); } static void pppos_client_task(void *self_in) {