plerup / espsoftwareserial

Implementation of the Arduino software serial for ESP8266
GNU Lesser General Public License v2.1
717 stars 270 forks source link

Compiler errors with 8.0.2+sha.bcfd6d1 #284

Closed olonsoft closed 1 year ago

olonsoft commented 1 year ago

I tried to update the libraries of my already working project and now the compilation shows the following errors:

In file included from src\main.cpp:13:0:
.pio\libdeps\nodemcuv2\EspSoftwareSerial\src/SoftwareSerial.h: In static member function 'static constexpr bool EspSoftwareSerial::GpioCapabilities::hasPullUp(int8_t)':
.pio\libdeps\nodemcuv2\EspSoftwareSerial\src/SoftwareSerial.h:102:5: error: body of constexpr function 'static constexpr bool EspSoftwareSerial::GpioCapabilities::hasPullUp(int8_t)' not a return-statement   
     }
     ^
.pio\libdeps\nodemcuv2\EspSoftwareSerial\src/SoftwareSerial.h: At global scope:
.pio\libdeps\nodemcuv2\EspSoftwareSerial\src/SoftwareSerial.h:285:23: warning: 'deprecated' attribute directive ignored [-Wattributes]    
     void perform_work();
                       ^
.pio\libdeps\nodemcuv2\EspSoftwareSerial\src/SoftwareSerial.h:199:9: error: 'int EspSoftwareSerial::UARTBase::availableForWrite()' marked override, but does not override
     int availableForWrite() override {
Compiling C:\programming\pio\anemometer\nodemcuv2\lib9f6\ESP8266WiFi\ESP8266WiFiAP.cpp.o
         ^
.pio\libdeps\nodemcuv2\EspSoftwareSerial\src/SoftwareSerial.h:226:9: error: 'int EspSoftwareSerial::UARTBase::read(uint8_t*, size_t)' marked override, but does not override
     int read(uint8_t* buffer, size_t size)
         ^
olonsoft commented 1 year ago

For some reason my platformio had loaded an older version of toolchain-xtensa and framework-arduinoespressif8266. I 've updated to 2.100300.220621 (10.3.0) and 3.30102.0 (3.1.2) and now my project compiled successfully.