From 91fc7bd39cf033757bbec7d84cf16150190537e1 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Sat, 7 May 2016 00:01:23 -0400 Subject: [PATCH] auto-sync --- firmware/console/binary/tunerstudio.cpp | 2 ++ firmware/hw_layer/mmc_card.cpp | 5 +++++ firmware/hw_layer/mmc_card.h | 2 ++ 3 files changed, 9 insertions(+) diff --git a/firmware/console/binary/tunerstudio.cpp b/firmware/console/binary/tunerstudio.cpp index af8fe25571..139f4e429d 100644 --- a/firmware/console/binary/tunerstudio.cpp +++ b/firmware/console/binary/tunerstudio.cpp @@ -79,6 +79,7 @@ #include "svnversion.h" #include "loggingcentral.h" #include "status_loop.h" +#include "mmc_card.h" #if EFI_SIMULATOR || defined(__DOXYGEN__) #include "rusEfiFunctionalTest.h" #endif @@ -248,6 +249,7 @@ void yellowMagic(int currentPageId, int offset, int count) { */ static void handleReadFileContent(ts_channel_s *tsChannel, short fileId, short offset, short length) { + readLogFileContent(tsChannel->crcReadBuffer, fileId, offset, length); } diff --git a/firmware/hw_layer/mmc_card.cpp b/firmware/hw_layer/mmc_card.cpp index 9d17590a78..c4bc6e866f 100644 --- a/firmware/hw_layer/mmc_card.cpp +++ b/firmware/hw_layer/mmc_card.cpp @@ -210,6 +210,11 @@ static void listDirectory(const char *path) { static int errorReported = FALSE; // this is used to report the error only once +void readLogFileContent(char *buffer, short fileId, short offset, short length) { + +} + + /** * @brief Appends specified line to the current log file */ diff --git a/firmware/hw_layer/mmc_card.h b/firmware/hw_layer/mmc_card.h index 8084af42aa..6213146bf2 100644 --- a/firmware/hw_layer/mmc_card.h +++ b/firmware/hw_layer/mmc_card.h @@ -19,6 +19,8 @@ void initMmcCard(void); bool isSdCardAlive(void); void appendToLog(const char *line); +void readLogFileContent(char *buffer, short fileId, short offset, short length); + #ifdef __cplusplus } #endif /* __cplusplus */