mcci-catena / Catena-Arduino-Platform

Arduino platform library for MCCI Catena IoT Systems
MIT License
12 stars 11 forks source link

Add (experimental) conditional print based on lambda #164

Closed terrillmoore closed 5 years ago

terrillmoore commented 5 years ago

gLog.printf(flags, "format", ...) always evaluates its arguments, even if the print is skipped.

Add gLog.cond(flags, [&]{){ .... }), which calls the ... code only if enabled by the flag values and the log settings.