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: Daniël van de Giessen <[email protected]>
  • Loading branch information
IhorNehrutsa and DvdGiessen committed Jan 13, 2025
1 parent 08471c0 commit 67bd574
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 Down Expand Up @@ -145,7 +145,7 @@ static mp_obj_t ppp_active(size_t n_args, const mp_obj_t *args) {
return mp_const_true;
}

self->pcb = pppapi_pppos_create(&self->pppif, (void *)ppp_output_callback, ppp_status_cb, self);
self->pcb = pppapi_pppos_create(&self->pppif, ppp_output_callback, ppp_status_cb, self);

if (self->pcb == NULL) {
mp_raise_msg(&mp_type_RuntimeError, MP_ERROR_TEXT("init failed"));
Expand Down

0 comments on commit 67bd574

Please sign in to comment.