diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2019-04-30 14:49:51 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2019-04-30 14:49:51 +0300 |
| commit | 8b1f81f413f51facb57a320fef47f2a0e297dc40 (patch) | |
| tree | 7b1c111437418cf42415ba9fe4eb675fb362a838 /Software/Embedded_SW/Embedded/Main.c | |
| parent | ac8e5600d3ad7a8ff9f76fc35dcaf4d155ebce66 (diff) | |
| download | Tango-8b1f81f413f51facb57a320fef47f2a0e297dc40.tar.gz Tango-8b1f81f413f51facb57a320fef47f2a0e297dc40.zip | |
Version 1.3.9.32 reduced diagnostics. new ITMA screens. heating improved. lubricant handled better
Diffstat (limited to 'Software/Embedded_SW/Embedded/Main.c')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Main.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Software/Embedded_SW/Embedded/Main.c b/Software/Embedded_SW/Embedded/Main.c index 379c45f76..ad88a9ed2 100644 --- a/Software/Embedded_SW/Embedded/Main.c +++ b/Software/Embedded_SW/Embedded/Main.c @@ -74,7 +74,7 @@ #include "Modules/General/buttons.h" #include "Modules/Waste/Waste.h" #include <Drivers/I2C_Communication/Dispenser_Card/IO_Ports/Dispenser_IO.h> -//#define WATCHDOG +#define WATCHDOG //***************************************************************************** @@ -114,7 +114,7 @@ Void errHook(Error_Block *eb) FRESULT Fresult = FR_OK; FIL *FileHandle = 0; //the system supports a single active file uint32_t Bytes = 0; - char ErrorPath[50] = "0://ErrorFile.txt"; + char ErrorPath[50] = "0://ErrFile.txt"; char File[50] = ""; char message[300]; int len; @@ -138,14 +138,14 @@ Void errHook(Error_Block *eb) Fresult = f_open(FileHandle,ErrorPath,FA_OPEN_ALWAYS | FA_WRITE | FA_READ); if (Fresult == FR_OK) { + f_lseek(FileHandle, FileHandle->fsize); strcpy(File,site->file); - len = usnprintf(message, 80, "\r\n%s %s %s",__DATE__, __TIME__,File); + len = usnprintf(message, 80, "\r\n%s %s",__DATE__, __TIME__); Fresult = f_write(FileHandle,message,len,&Bytes ); /* print user supplied error code */ - len = usnprintf(message, 300, "\r\nerror %d, eid %d file %s line %d mod %d", - eCode, eid, site->file, - site->line, - site->mod); + len = usnprintf(message, 300, "\r\nerror %d, eid %d mod %d file %s line %d", + eCode, eid,site->mod, + site->file,site->line); Fresult = f_write(FileHandle,message,len,&Bytes ); LOG_ERROR (eCode, "error # "); |
