ModularSensors > Files > src / LoggerBase.cpp

LoggerBase.cpp file

Implements the Logger class.

Defines

#define LIBCALL_ENABLEINTERRUPT
To prevent compiler/linker crashes with enable interrupt library, we must define LIBCALL_ENABLEINTERRUPT before importing EnableInterrupt within a library.
#define STREAM_CSV_ROW(firstCol, function) = stream->print("\""); \ stream->print(firstCol); \ stream->print("\","); \ for (uint8_t i = 0; i < getArrayVarCount(); i++) { \ stream->print("\""); \ stream->print(function); \ stream->print("\""); \ if (i + 1 != getArrayVarCount()) { stream->print(","); } \ } \ stream->println();
This is a PRE-PROCESSOR MACRO to speed up generating header rows.

Define documentation

#define STREAM_CSV_ROW(firstCol, function) = stream->print("\""); \ stream->print(firstCol); \ stream->print("\","); \ for (uint8_t i = 0; i < getArrayVarCount(); i++) { \ stream->print("\""); \ stream->print(function); \ stream->print("\""); \ if (i + 1 != getArrayVarCount()) { stream->print(","); } \ } \ stream->println();

This is a PRE-PROCESSOR MACRO to speed up generating header rows.

THIS IS NOT A FUNCTION, it is a pre-processor macro