SerialDebug icon indicating copy to clipboard operation
SerialDebug copied to clipboard

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

Open SMasanneck opened this issue 5 years ago • 0 comments

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: 1. 2. 3.

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:

  • OS: [e.g. Windows, MacOSX, Linux] Windows
  • IDE [e.g. Arduino IDE, Eclipse, VSCode] Arduino 1.8.12
  • IDE Version [e.g. 1.8.6] Arduino 1.8.12
  • Board [e.g ESP32] MKR WAN 1300

Additional context Add any other context about the problem here.

SMasanneck avatar May 18 '20 09:05 SMasanneck