SensESP
3.0.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
local_debug.cpp
Go to the documentation of this file.
1
#include "
local_debug.h
"
2
3
namespace
sensesp
{
4
5
#ifndef DEBUG_DISABLED
6
7
bool
LocalDebug::begin
(uint8_t startingDebugLevel) {
8
lastDebugLevel_ = startingDebugLevel;
9
return
true
;
10
}
11
12
boolean
LocalDebug::isActive
(uint8_t debugLevel) {
13
return
(debugLevel >= lastDebugLevel_);
14
}
15
16
// size_t LocalDebug::write(uint8_t character) {
17
// Serial.write(character);
18
// return 1;
19
// }
20
21
#endif
// DEBUG_DISABLED
22
23
}
// namespace sensesp
sensesp::LocalDebug::isActive
boolean isActive(uint8_t debugLevel=DEBUG)
Definition
local_debug.cpp:12
sensesp::LocalDebug::begin
bool begin(uint8_t startingDebugLevel=DEBUG)
Definition
local_debug.cpp:7
local_debug.h
sensesp
Definition
sensesp.cpp:7
src
sensesp
system
local_debug.cpp
Generated by
1.12.0