firmware/src/error.h

12 lines
425 B
C
Raw Normal View History

#pragma once
#include <Arduino.h>
2023-01-18 14:56:47 +00:00
#include "mesh/generated/meshtastic/mesh.pb.h" // For CriticalErrorCode
/// A macro that include filename and line
2021-05-01 03:27:37 +00:00
#define RECORD_CRITICALERROR(code) recordCriticalError(code, __LINE__, __FILE__)
/// Record an error that should be reported via analytics
void recordCriticalError(CriticalErrorCode code = CriticalErrorCode_UNSPECIFIED, uint32_t address = 0, const char *filename = NULL);