Files
lora_meshtastic_project/code/firmware-2.7.15.567b8ea/src/error.h
T
kevin 26d5971aba 稳定版代码
Signed-off-by: 吴文峰 <kevin@lmve.net>
2026-03-06 19:52:05 +08:00

12 lines
471 B
C

#pragma once
#include <Arduino.h>
#include "mesh/generated/meshtastic/mesh.pb.h" // For CriticalErrorCode
/// A macro that include filename and line
#define RECORD_CRITICALERROR(code) recordCriticalError(code, __LINE__, __FILE__)
/// Record an error that should be reported via analytics
void recordCriticalError(meshtastic_CriticalErrorCode code = meshtastic_CriticalErrorCode_UNSPECIFIED, uint32_t address = 0,
const char *filename = NULL);