/*
|
|
|
|
DEBUG MODULE
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <Arduino.h>
|
|
|
|
extern "C" {
|
|
void custom_crash_callback(struct rst_info*, uint32_t, uint32_t);
|
|
}
|
|
|
|
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 debugSend(const char* format, ...);
|
|
void debugSend_P(const char* format, ...);
|