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
3namespace sensesp {
4
5#ifndef DEBUG_DISABLED
6
7bool LocalDebug::begin(uint8_t startingDebugLevel) {
8 lastDebugLevel_ = startingDebugLevel;
9 return true;
10}
11
12boolean 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
boolean isActive(uint8_t debugLevel=DEBUG)
bool begin(uint8_t startingDebugLevel=DEBUG)