blob: c31e98f435ec71b27896073c7d047c42de1aab8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include <stdlib.h>
#include "config.def.h"
#ifdef DEBUG
namespace homekit {
void hexdump(const void* data, size_t size);
}
#define PRINTLN(s) Serial.println(s)
#define PRINT(s) Serial.print(s)
#define PRINTF(fmt, ...) Serial.printf(fmt, ##__VA_ARGS__)
#define HEXDUMP(data, size) homekit::hexdump((data), (size));
#else
#define PRINTLN(s)
#define PRINT(s)
#define PRINTF(a)
#define HEXDUMP(data, size)
#endif
|