File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 4
4
#include < Arduino.h>
5
5
#include < TheThingsNetwork.h>
6
6
7
+ #define debugPrintLn (...) { if (debugStream) debugStream->println (__VA_ARGS__); }
8
+ #define debugPrint (...) { if (debugStream) debugStream->print (__VA_ARGS__); }
9
+
7
10
void TheThingsNetwork::init (Stream& modemStream, Stream& debugStream) {
8
11
this ->modemStream = &modemStream;
9
12
this ->debugStream = &debugStream;
Original file line number Diff line number Diff line change 20
20
#define PWRIDX_868 1
21
21
#define PWRIDX_915 1
22
22
23
- #define debugPrintLn (...) { if (debugStream) debugStream->println (__VA_ARGS__); }
24
- #define debugPrint (...) { if (debugStream) debugStream->print (__VA_ARGS__); }
25
-
26
23
#define HEX_CHAR_TO_NIBBLE (c ) ((c >= ' A' ) ? (c - ' A' + 0x0A ) : (c - ' 0' ))
27
24
#define HEX_PAIR_TO_BYTE (h, l ) ((HEX_CHAR_TO_NIBBLE(h) << 4 ) + HEX_CHAR_TO_NIBBLE(l))
28
25
You can’t perform that action at this time.
0 commit comments