Skip to content

Commit

Permalink
esp32/network_ppp.c: Update callback signature.
Browse files Browse the repository at this point in the history
Signed-off-by: IhorNehrutsa <[email protected]>

Co-Authored-By: Daniel van de Giessen <[email protected]>
  • Loading branch information
IhorNehrutsa and DvdGiessen committed Jan 21, 2025
1 parent 30a96b3 commit 085cecb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ports/esp32/network_ppp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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) {
Expand Down

0 comments on commit 085cecb

Please sign in to comment.