mcci-catena / Catena-Arduino-Platform

Arduino platform library for MCCI Catena IoT Systems

Repository from Github https://github.commcci-catena/Catena-Arduino-PlatformRepository from Github https://github.commcci-catena/Catena-Arduino-Platform

Add (experimental) conditional print based on lambda

terrillmoore opened this issue · comments

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.