OOKwiz
on/off-keying for ESP32 and a variety of supported radio modules
src
serial_output.h
Go to the documentation of this file.
1
#
ifndef
_SERIAL_OUTPUT_H_
2
#
define
_SERIAL_OUTPUT_H_
3
4
#
include
"Settings.h"
5
#
include
<
Arduino
.
h
>
6
7
#
define
ERROR
(
...
)
{
8
String
errorlevel
;
9
SETTING
(
errorlevel
)
;
10
if
(
errorlevel
!=
"none"
)
Serial
.
printf
(
__VA_ARGS__
)
;
\
11
}
12
13
#
define
INFO
(
...
)
{
14
String
errorlevel
;
15
SETTING
(
errorlevel
)
;
16
if
(
errorlevel
!=
"none"
&&
errorlevel
!=
"error"
)
Serial
.
printf
(
__VA_ARGS__
)
;
\
17
}
18
19
#
define
DEBUG
(
...
)
{
20
String
errorlevel
;
21
SETTING
(
errorlevel
)
;
22
if
(
errorlevel
==
"debug"
)
Serial
.
printf
(
__VA_ARGS__
)
;
\
23
}
24
25
#
define
RFLINK
(
...
)
26
if
(
!
Settings
::
isSet
(
"rflink_disable"
)
)
{
27
Serial
.
printf
(
"20;%02X;"
,
rflink_seq_nr
++
)
;
28
Serial
.
printf
(
__VA_ARGS__
)
;
29
}
30
31
extern
uint8_t
rflink_seq_nr
;
32
33
#
endif
Generated by
1.9.1