![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Arianna autonomous DAQ firmware
Dependencies: mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW
Diff: SnSDUtils.cpp
- Revision:
- 7:079617408fec
- Parent:
- 6:6f002d202f59
- Child:
- 8:95a325df1f6b
--- a/SnSDUtils.cpp Fri Aug 03 23:50:57 2012 +0000 +++ b/SnSDUtils.cpp Sat Aug 04 01:48:55 2012 +0000 @@ -62,7 +62,11 @@ if (strncmp(dent->d_name, fn, ncomp)==0) { // allow for deleted files to make gaps. // search for highest seq number and increase that - sscanf(fn+ncomp,"s%hu.dat",&seq); + sscanf((dent->d_name)+ncomp,"s%hu.dat",&seq); + /* + printf("dn=%s, seq=%hu, __kMaxUShort=%hu\r\n", + dent->d_name, seq, __kMaxUShort); + */ if (seq==__kMaxUShort) { newseq = seq; break; @@ -77,7 +81,7 @@ } closedir(d); } - + return newseq; }