jasoncoon / esp8266-fastled-webserver

GNU General Public License v3.0
712 stars 360 forks source link

macro "SERIAL_DEBUG_ADDF" defined here #251

Closed Teuflor closed 2 years ago

Teuflor commented 2 years ago

Using a fresh config, fresh 8266 mini.

when i delte the "//" from #define ENABLE_MQTT_SUPPORT and compile the fresh config without any other changes i get this error:

esp8266-fastled-iot-webserver:1448:79: error: macro "SERIAL_DEBUG_ADDF" passed 2 arguments, but takes just 1
 1448 |                 SERIAL_DEBUG_ADDF("failed with state %s\n", mqttClient.state())
      |                                                                               ^
C:\Users\xXxxXX\Desktop\esp8266-fastled-iot-webserver\esp8266-fastled-iot-webserver.ino:329: note: macro "SERIAL_DEBUG_ADDF" defined here
  329 | #define SERIAL_DEBUG_ADDF(s) do{}while(0);
      | 
exit status 1
macro "SERIAL_DEBUG_ADDF" passed 2 arguments, but takes just 1

i google it, but cant find any usefull help.

Teuflor commented 2 years ago

https://github.com/NimmLor/esp8266-fastled-iot-webserver/commit/386efc6d168b074213e9cb01b7ebdb9e09de6f0f