aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Main.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-05-30 17:33:20 +0300
committerShlomo Hecht <shlomo@twine-s.com>2019-05-30 17:33:20 +0300
commitb525fbcad1ac8c7126caa82ec8458ffbb6284384 (patch)
tree61abe4c1610fc2e0b6af8e5f926d5624692df2fe /Software/Embedded_SW/Embedded/Main.c
parent405096b3d489f4ea7b50b1d5db7d32241251b8d7 (diff)
downloadTango-b525fbcad1ac8c7126caa82ec8458ffbb6284384.tar.gz
Tango-b525fbcad1ac8c7126caa82ec8458ffbb6284384.zip
Version 1.4.0.4: Improved memory handling, handles SW crash after a job failure
Diffstat (limited to 'Software/Embedded_SW/Embedded/Main.c')
-rw-r--r--Software/Embedded_SW/Embedded/Main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Software/Embedded_SW/Embedded/Main.c b/Software/Embedded_SW/Embedded/Main.c
index 5b6066a5f..36825d232 100644
--- a/Software/Embedded_SW/Embedded/Main.c
+++ b/Software/Embedded_SW/Embedded/Main.c
@@ -139,7 +139,7 @@ Void errHook(Error_Block *eb)
if (Fresult == FR_OK)
{
f_lseek(FileHandle, FileHandle->fsize);
- strcpy(File,site->file);
+ strncpy(File,site->file,49);
len = usnprintf(message, 80, "\r\n%s %s",__DATE__, __TIME__);
Fresult = f_write(FileHandle,message,len,&Bytes );
/* print user supplied error code */
@@ -169,8 +169,10 @@ Void errHook(Error_Block *eb)
Task_sleep (200);
my_free(FileHandle);
}
+#ifdef WATCHDOG
//Power_Reset();
SysCtlReset();
+#endif
}
//*****************************************************************************