vpcola / ESP32SingleChannelGateway

A Fork of the popular ESP8266 single channel gateway adapted to ESP32 on the 915Mhz band.
74 stars 46 forks source link

Change WlanReadWpa return type to void #3

Open per1234 opened 6 years ago

per1234 commented 6 years ago

Arduino core for the ESP32 sets -Werror=all for warning levels of "More" or "All" in the Arduino IDE's File > Preferences > Compiler warnings setting. This upgrades what would have previously been a warning about the lack of a return statement in non-void WlanReadWpa() to a compilation error. Since the call to WlanReadWpa() doesn't expect a return value and there is nothing obvious in the function to return, I have changed the return type to void to fix this error/warning.

Note there is another one of these errors caused by the "ESP8266 and ESP32 Oled Driver for SSD1306 display" library but that issue has already been resolved upstream and so the solution there is to simply update the library to 4.0.0.

I recommend you to set File > Preferences > Compiler warnings: > All.