2020-03-24 20:33:24 +00:00
|
|
|
#pragma once
|
|
|
|
|
2020-04-14 19:31:29 +00:00
|
|
|
#include <Arduino.h>
|
|
|
|
|
2023-01-18 14:56:47 +00:00
|
|
|
#include "mesh/generated/meshtastic/mesh.pb.h" // For CriticalErrorCode
|
2020-03-24 20:33:24 +00:00
|
|
|
|
2021-04-29 01:52:15 +00:00
|
|
|
/// A macro that include filename and line
|
2021-05-01 03:27:37 +00:00
|
|
|
#define RECORD_CRITICALERROR(code) recordCriticalError(code, __LINE__, __FILE__)
|
2021-04-29 01:52:15 +00:00
|
|
|
|
2020-03-24 20:33:24 +00:00
|
|
|
/// Record an error that should be reported via analytics
|
2023-01-21 17:22:19 +00:00
|
|
|
void recordCriticalError(meshtastic_CriticalErrorCode code = meshtastic_CriticalErrorCode_UNSPECIFIED, uint32_t address = 0,
|
2023-06-08 13:07:32 +00:00
|
|
|
const char *filename = NULL);
|