JoaoLopesF / SerialDebug

Improved serial debug and simple software debugger to Arduino. With debug levels, see/change global variables, call functions, watches, and more.
MIT License
244 stars 39 forks source link

#define DEBUG_DISABLED doesn't work with decimal to HEX conversion #15

Open SMasanneck opened 4 years ago

SMasanneck commented 4 years ago

Describe the bug A clear and concise description of what the bug is. My code can compile with dec to hex in array "printI(data[t], HEX)" BUT when using #define DEBUG_DISABLED to remove the library. A compilation error happens.

);/

To Reproduce Steps to reproduce the behavior:

Expected behavior A clear and concise description of what you expected to happen. No compilation error

Screenshots If applicable, add screenshots to help explain your problem. Error: "cibicomv9:441:24: error: macro "printI" passed 2 arguments, but takes just 1 printI(data[t], HEX);//The SerialDebug libary doesn't have the decimal to hex conversion when debug disabled"

Arduino Information:

Additional context Add any other context about the problem here.