diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2020-12-10 19:38:53 +0200 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2020-12-10 19:38:53 +0200 |
| commit | a1a5b23fa3ae710e5c3d741fe59e0b6cc3fbcd5b (patch) | |
| tree | 8d0eb02e8f0ae1a4878b98531fa39cf309166954 /Software/Embedded_SW/Embedded/Common | |
| parent | afaee9a1cc07c5578aa9630963d895380d64f51b (diff) | |
| download | Tango-a1a5b23fa3ae710e5c3d741fe59e0b6cc3fbcd5b.tar.gz Tango-a1a5b23fa3ae710e5c3d741fe59e0b6cc3fbcd5b.zip | |
version 1.5.3.4
Diffstat (limited to 'Software/Embedded_SW/Embedded/Common')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Common/SW_Info/SW_Info.c | 2 | ||||
| -rw-r--r-- | Software/Embedded_SW/Embedded/Common/report/reportInit.c | 17 |
2 files changed, 12 insertions, 7 deletions
diff --git a/Software/Embedded_SW/Embedded/Common/SW_Info/SW_Info.c b/Software/Embedded_SW/Embedded/Common/SW_Info/SW_Info.c index e27127c56..5392a415e 100644 --- a/Software/Embedded_SW/Embedded/Common/SW_Info/SW_Info.c +++ b/Software/Embedded_SW/Embedded/Common/SW_Info/SW_Info.c @@ -20,7 +20,7 @@ typedef struct } TangoVersion_t; -TangoVersion_t _gTangoVersion = {1,5,3,3}; +TangoVersion_t _gTangoVersion = {1,5,3,4}; #define BUILD_DATE __DATE__ char Dat[50] = BUILD_DATE; diff --git a/Software/Embedded_SW/Embedded/Common/report/reportInit.c b/Software/Embedded_SW/Embedded/Common/report/reportInit.c index d80db5d73..2850f666e 100644 --- a/Software/Embedded_SW/Embedded/Common/report/reportInit.c +++ b/Software/Embedded_SW/Embedded/Common/report/reportInit.c @@ -85,7 +85,8 @@ bool isReportActive(void) } uint32_t OpenLogFile(void) { - /*int len; +#ifdef STORE_DEBUG_LOGS + int len; uint32_t Bytes = 0; LogFileHandle = my_malloc(sizeof(FIL)); if (LogFileHandle) @@ -105,19 +106,22 @@ uint32_t OpenLogFile(void) else LogFresult = FR_INT_ERR; - return LogFresult;*/ + return LogFresult; +#endif return OK; } uint32_t CloseLogFile(void) { /* perform default error output */ - /*int len; +#ifdef STORE_DEBUG_LOGS + int len; uint32_t Bytes = 0; len = usnprintf(RepMessage, 80, "Closing Log File %s %s",__DATE__, __TIME__); LogFresult = f_write(LogFileHandle,RepMessage,len,&Bytes ); LogFresult = f_close(LogFileHandle); LogFileHandle = NULL; - return LogFresult;*/ + return LogFresult; +#endif return OK; } @@ -130,7 +134,8 @@ uint32_t LogToFile(char *message, /* The formatted message { /* print user supplied error code */ -/* uint32_t Bytes = 0; +#ifdef STORE_DEBUG_LOGS + uint32_t Bytes = 0; int len; if (LogFileHandle == NULL) return OK; @@ -141,7 +146,7 @@ uint32_t LogToFile(char *message, /* The formatted message f_lseek(LogFileHandle, 0); return LogFresult; - */ +#endif return OK; } |
