blob: 559ca3384cdbf2b2374a5231af4331bc619ccb73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef COMMON_HOMEKIT_LOGGING_H
#define COMMON_HOMEKIT_LOGGING_H
#include <stdlib.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
#endif //COMMON_HOMEKIT_LOGGING_H
|