pinelora WIP

This commit is contained in:
Kevin Hester
2021-05-01 11:27:37 +08:00
parent 8ec73e653b
commit 4c1b7d4840
9 changed files with 53 additions and 15 deletions

View File

@@ -5,7 +5,7 @@
#include "mesh/generated/mesh.pb.h" // For CriticalErrorCode
/// A macro that include filename and line
#define RECORD_CRITICALERROR(code) (code, __LINE__, __FILE__)
#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);