meshtastic-firmware/src/error.h

12 wiersze
471 B
C
Czysty Zwykły widok Historia

#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(meshtastic_CriticalErrorCode code = meshtastic_CriticalErrorCode_UNSPECIFIED, uint32_t address = 0,
const char *filename = NULL);