summaryrefslogtreecommitdiff
path: root/platformio/relayctl/src/logging.h
blob: 070f36758e471f2d2cfd5c62e996ba55f7a8d071 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <stdlib.h>
#include "config.def.h"

#ifdef DEBUG

#define PRINTLN(s)          Serial.println(s)
#define PRINT(s)            Serial.print(s)
#define PRINTF(fmt, ...)    Serial.printf(fmt, ##__VA_ARGS__)

#else

#define PRINTLN(s)
#define PRINT(s)
#define PRINTF(...)

#endif