aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Main.c
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2020-02-17 16:07:38 +0200
committerAvi Levkovich <avi@twine-s.com>2020-02-17 16:07:38 +0200
commitef657b4a3ae76e99ab077d6b4fc19691c2a0da4a (patch)
treee60f97eee0076c674d27a1d2c0be8314c4e5de7e /Software/Embedded_SW/Embedded/Main.c
parentdabfdff468c7065ceadaaf2fbe95e8eeaa3c2f9e (diff)
downloadTango-ef657b4a3ae76e99ab077d6b4fc19691c2a0da4a.tar.gz
Tango-ef657b4a3ae76e99ab077d6b4fc19691c2a0da4a.zip
merge
Diffstat (limited to 'Software/Embedded_SW/Embedded/Main.c')
-rw-r--r--Software/Embedded_SW/Embedded/Main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Software/Embedded_SW/Embedded/Main.c b/Software/Embedded_SW/Embedded/Main.c
index 393a366ac..6b5424d74 100644
--- a/Software/Embedded_SW/Embedded/Main.c
+++ b/Software/Embedded_SW/Embedded/Main.c
@@ -143,7 +143,7 @@ Void errHook(Error_Block *eb)
CloseLogFile();
if (UpdateFlag == true)
return;
- FileHandle = my_malloc(sizeof(FIL));
+ /*FileHandle = my_malloc(sizeof(FIL));
if (FileHandle == 0)
Fresult = FR_DENIED;
else
@@ -155,19 +155,19 @@ Void errHook(Error_Block *eb)
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 */
+ // print user supplied error code
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 # ");
- /* check originator's mod id against known mods */
+ // check originator's mod id against known mods
if (site->mod == Main_Module_id()) {
Fresult = f_write(FileHandle,"\r\napp error: ",12,&Bytes );
}
- /* check error id against known errors */
+ // check error id against known errors
if (eid == Error_E_generic) {
Fresult = f_write(FileHandle,"generic: ",10,&Bytes );
}
@@ -176,12 +176,12 @@ Void errHook(Error_Block *eb)
Fresult = f_write(FileHandle,"\r\nassertion violation: ",22,&Bytes );
}
- /* perform default error output */
+ // perform default error output
f_close(FileHandle);
}
Task_sleep (200);
my_free(FileHandle);
- }
+ }*/
#ifdef WATCHDOG
//Power_Reset();
SysCtlReset();