workaround include mess when building simulator

This commit is contained in:
Andrey Gusakov 2025-01-15 12:03:43 +03:00 committed by rusefillc
parent 97aa83ad16
commit 0e6dc0c7b2
2 changed files with 6 additions and 6 deletions

View File

@ -105,13 +105,8 @@ void errorHandlerInit();
bool errorHandlerIsStartFromError();
// If there was an error on the last boot, print out information about it now and reset state.
void errorHandlerShowBootReasonAndErrors();
#if EFI_FILE_LOGGING
// for FIL
#include "ff.h"
// write error report to file
void errorHandlerWriteReportFile(FIL *fd);
#endif
//void errorHandlerWriteReportFile(FIL *fd);
#endif // EFI_PROD_CODE

View File

@ -39,6 +39,11 @@ static int totalSyncCounter = 0;
#include "rtc_helper.h"
// This is dirty workaround to fix compilation without adding this function prototype
// to error_handling.h file that will also need to add "ff.h" include to same file and
// cause simulator fail to build.
extern void errorHandlerWriteReportFile(FIL *fd);
#define SD_STATE_INIT "init"
#define SD_STATE_MOUNTED "MOUNTED"
#define SD_STATE_MOUNT_FAILED "MOUNT_FAILED"