gmag11 / ESPNtpClient

High accuracy NTP library for ESP32 and ESP8266
MIT License
118 stars 25 forks source link

ESPNtpClient.cpp: 483:50: error: 'struct pbuf' has no member named 'type #37

Closed unregistered33 closed 2 years ago

unregistered33 commented 2 years ago

First, thanks for excellent library! But i have litle problem/ When i use esp32 core 1.0.6 the library work fine, but when i try to use core 2.0.2 i have error: _ESPNtpClient.cpp: 483:50: error: 'struct pbuf' has no member named 'type

ESPNtpClient.cpp: 754:21: error: 'struct pbuf' has no member named 'type_

unregistered33 commented 2 years ago

looked at the pbuf.h file and did not find the field "type", but there is "type_internal". Im change it and code compile succesful. Is it right solution?

gmag11 commented 2 years ago

Hi, I'm using Platformio ESP32 framework. I guess it uses ESP32 Arduino core 1.0.6 so most probably you are right. I leave this open until PlatformIO supports newer core releases

gmag11 commented 2 years ago

Fixed in latest release