From 0e590295415ae2219141b0ef0d0f74c9d08d7cc2 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 21 Sep 2019 01:49:46 -0400 Subject: [PATCH] spelling --- firmware/hw_layer/mmc_card.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/hw_layer/mmc_card.cpp b/firmware/hw_layer/mmc_card.cpp index af5911cad3..67937ffdbc 100644 --- a/firmware/hw_layer/mmc_card.cpp +++ b/firmware/hw_layer/mmc_card.cpp @@ -299,7 +299,7 @@ void readLogFileContent(char *buffer, short fileId, short offset, short length) * @brief Appends specified line to the current log file */ void appendToLog(const char *line) { - UINT bytesWrited; + UINT bytesWritten; if (!fs_ready) { if (!errorReported) @@ -310,8 +310,8 @@ void appendToLog(const char *line) { UINT lineLength = strlen(line); engine->engineState.totalLoggedBytes += lineLength; lockSpi(SPI_NONE); - FRESULT err = f_write(&FDLogFile, line, lineLength, &bytesWrited); - if (bytesWrited < lineLength) { + FRESULT err = f_write(&FDLogFile, line, lineLength, &bytesWritten); + if (bytesWritten < lineLength) { printError("write error or disk full", err); // error or disk full } f_sync(&FDLogFile);