/
Grifmax
/
rectification-controller
Обзор
Документация
Войти
/
Grifmax
/
rectification-controller
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/debug_mode.h
29 строк
666 B
grifmax
Add files via upload
23 ноя 2025, 18:07
Не верифицирован
23 ноя 2025, 18:07
8389621
Код
Авторство
О чём код?
/** * @file debug_mode.h * @brief Режим отладки с детальным выводом */ #ifndef DEBUG_MODE_H #define DEBUG_MODE_H #include <Arduino.h> void initDebugMode(bool enabled = false); void setDebugMode(bool enabled); bool isDebugMode(); void debugPrint(const String& message); void debugPrintF(const char* format, ...); void printSystemInfo(); void printMemoryInfo(); void dumpTaskInfo(); // Макросы для отладки #ifdef DEBUG_MODE_ENABLED #define DEBUG_PRINT(x) debugPrint(x) #define DEBUG_PRINTF(fmt, ...) debugPrintF(fmt, ##__VA_ARGS__) #else #define DEBUG_PRINT(x) #define DEBUG_PRINTF(fmt, ...) #endif #endif