espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.87k stars 7.32k forks source link

Compilation error for PPP protocol (IDFGH-2158) #4313

Closed Arthedian closed 5 years ago

Arthedian commented 5 years ago

Environment

Problem Description

When I compile official example code for SIM800L (PPP protocol), than everything is ok, but once I implement it into my code, than there is a error in compilation

Expected Behavior

Successful compilation.

Actual Behavior

../components/gsm/lib/esp_modem.c: In function 'on_ppp_status_changed': ../components/gsm/lib/esp_modem.c:484:38: error: 'dns_getserver(0)' is a pointer; did you mean to use '->'? ipinfo.ns1 = dns_getserver(0).u_addr.ip4; ^ -> ../components/gsm/lib/esp_modem.c:485:38: error: 'dns_getserver(1)' is a pointer; did you mean to use '->'? ipinfo.ns2 = dns_getserver(1).u_addr.ip4; ^ ->

suda-morris commented 5 years ago

FYI, https://github.com/espressif/esp-idf/blob/master/examples/protocols/pppos_client/components/modem/src/esp_modem.c#L468

Arthedian commented 5 years ago

Oh sorry, thanks.