JoaoLopesF / RemoteDebug

Library for Arduino to debug projects over WiFi, with web app or telnet, with print commands like Serial Monitor
MIT License
613 stars 127 forks source link

if/else doesn't work (macro problem?) #55

Open mark-hahn opened 4 years ago

mark-hahn commented 4 years ago

Describe the bug

this code can never output "x=0"

if (x == 1) debugD("x=1");
else        debugD("x=0");

but this code works

if (x == 1) {debugD("x=1");}
else        {debugD("x=0");}

To Reproduce Run code snippets above.