Mirror of espurna firmware for wireless switches and more
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
/*
|
|
|
|
DEBUG MODULE
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
class PrintRaw;
|
|
class PrintHex;
|
|
|
|
enum class DebugLogMode : int {
|
|
Disabled = 0,
|
|
Enabled = 1,
|
|
SkipBoot = 2
|
|
};
|
|
|
|
bool debugLogBuffer();
|
|
|
|
void debugWebSetup();
|
|
void debugConfigure();
|
|
void debugConfigureBoot();
|
|
void debugSetup();
|
|
|
|
void debugSendRaw(const char* line, bool timestamp = false);
|
|
void debugSendBytes(const uint8_t* bytes, size_t size);
|
|
|
|
void debugSend(const char* format, ...);
|