Skip to content

Single-line improved debug print enable/disable. #1023

Closed

Description

@henrygab

#define FASTLED_NRF52_DEBUGPRINT(format, ...)
/*
#define FASTLED_NRF52_DEBUGPRINT(format, ...)\
do {\
FastLED_NRF52_DebugPrint(format, ##__VA_ARGS__);\
} while(0);
*/

As @ardnew correctly noted in #1001:

this can be safely simplified, enabling/disabling with a single comment [...]

#define FASTLED_NRF52_DEBUGPRINT(format, ...) \
//    do { FastLED_NRF52_DebugPrint(format, ##__VA_ARGS__); } while(0)

This just gives an issue number, to reference in the upcoming PR.

Activity

  1. changed the title [-]Improve [/-] [+]Single-line improved debug print enable/disable.[/+] on May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions