things4u / ESP-1ch-Gateway

Version 6 of the single channel gateway
MIT License
358 stars 143 forks source link

Setting #define OLED 0 breaks compilation #23

Closed tavdog closed 4 years ago

tavdog commented 4 years ago

If I set #define OLED 0 it won't compile with following error message :

SP-sc-gway:305: error: 'msg_oLED' was not declared in this scope
   msg_oLED("FORMAT");
                    ^
ESP-sc-gway:367: error: 'msg_oLED' was not declared in this scope
  msg_oLED("WIFI STA");
                     ^
ESP-sc-gway:484: error: 'msg_lLED' was not declared in this scope
  msg_lLED("GET TIME",".");
                         ^
/Users/tavis/code/arduino-projects/ESP-1ch-Gateway/ESP-sc-gway/_wwwServer.ino: In lambda function:
_wwwServer:1300: error: 'msg_oLED' was not declared in this scope
   msg_oLED("FORMAT");  
platenspeler commented 4 years ago

I could have made a mistake in earlier version, but I think in any case the OLED definition is correct in the latest version. What version of Gateway are you using? It is shown iin configGway.h file.

Maarten

tavdog commented 4 years ago

I used V.6.2.0.E.EU868; 200129b because the Arduino app complains about the changes made for platformIO.

platenspeler commented 4 years ago

Ah. You can download the 6.2.3 version and copy the content of the src directory of PlatformIO to the ESP-sc-gway directory, and the content of the lib directory of PlatformIO to the libraries directory.

Maarten

tavdog commented 4 years ago

That works, thank you.

platenspeler commented 4 years ago

Good to hear, Thank you!