aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Common/SW_Info
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-07-09 16:52:02 +0300
committerShlomo Hecht <shlomo@twine-s.com>2019-07-09 16:52:02 +0300
commite4eaedb7bcca2276a17bda687d7773dc1540346d (patch)
tree10b63964c75e8a628e3a72138aa36ff1077e6963 /Software/Embedded_SW/Embedded/Common/SW_Info
parent5cf2e060dcb21338d838e103951762b3e7eb4702 (diff)
downloadTango-e4eaedb7bcca2276a17bda687d7773dc1540346d.tar.gz
Tango-e4eaedb7bcca2276a17bda687d7773dc1540346d.zip
improve flash handling
Diffstat (limited to 'Software/Embedded_SW/Embedded/Common/SW_Info')
-rw-r--r--Software/Embedded_SW/Embedded/Common/SW_Info/SW_Info.c6
1 files changed, 3 insertions, 3 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 26f867fd1..ba601e283 100644
--- a/Software/Embedded_SW/Embedded/Common/SW_Info/SW_Info.c
+++ b/Software/Embedded_SW/Embedded/Common/SW_Info/SW_Info.c
@@ -43,14 +43,14 @@ uint16_t GetTangoVersion(uint8_t* _buffer)
memcpy(currPtr,_gTangoName,size);
currPtr+= size;
- char time[50];
+ char ttime[50];
int len;
- len = usnprintf(time, 50, "%s %s",__DATE__, __TIME__);
+ len = usnprintf(ttime, 50, "%s %s",__DATE__, __TIME__);
//++len; // added \0
//memcpy(currPtr,&len,2);
//currPtr+= 1;
//--len; // actual string len
- memcpy (currPtr,time,len);
+ memcpy (currPtr,ttime,len);
currPtr += len;
size = (currPtr - _buffer) + size;
//_buffer[size++] = '\0';