mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-19 04:16:01 -04:00
fix(esp_netif): Fix per pppos callback update in new lwip
This commit is contained in:
parent
22f213b518
commit
e8ac6af67e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user