Skip to content

DEBUG() #4

@copych

Description

@copych

On the web I have found one smart tip, so suggest modifying sparkStructures.h with this:

#define DEBUG_ON          // Comment this line out for a production build

#ifdef DEBUG_ON
#define DEBUG(...) Serial.println(__VA_ARGS__) 
#else
#define DEBUG(...)
#endif

it can accept any number of args, like DEBUG(0x0170, HEX) , so there will be no more need to use print(). And globally (un-)defined DEBUG_ON could switch the entire project to clean production build.

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