We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1346781 commit 1541633Copy full SHA for 1541633
src/deck/drivers/src/usddeck.c
@@ -809,9 +809,13 @@ static void usdWriteData(const void *data, size_t size)
809
{
810
UINT bytesWritten;
811
FRESULT status = f_write(&logFile, data, size, &bytesWritten);
812
- ASSERT(status == FR_OK);
813
- crc32Update(&crcContext, data, size);
814
- STATS_CNT_RATE_MULTI_EVENT(&fatWriteRate, bytesWritten);
+ if (status != FR_OK) {
+ DEBUG_PRINT("usd deck write failure %d\n", status);
+ enableLogging = false;
815
+ } else {
816
+ crc32Update(&crcContext, data, size);
817
+ STATS_CNT_RATE_MULTI_EVENT(&fatWriteRate, bytesWritten);
818
+ }
819
}
820
821
static void usdWriteTask(void* prm)
0 commit comments