2024-07-24 15:10:39 +02:00

10 lines
255 B
C

#include <Arduino.h>
#define TEST(x) \
if (!(x)) { \
Serial.printf("\033[31;1mFAILED:\033[22;39m %s:%d %s\n", __FILE__, __LINE__, #x); \
status = 1; \
} else { \
Serial.printf("\033[32;1mOK:\033[22;39m %s\n", #x); \
}