Skip to content

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

@SMasanneck

Description

@SMasanneck

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions