fixed comments

This commit is contained in:
Markus Fröschle
2013-02-14 06:54:27 +00:00
parent b37e507590
commit 63304d13c8
2 changed files with 10 additions and 3 deletions

View File

@@ -297,15 +297,22 @@ void basflash(void)
fres = f_readdir(&directory, &fileinfo); fres = f_readdir(&directory, &fileinfo);
while (fres == FR_OK) while (fres == FR_OK)
{ {
const char *ext = ".S19"; const char *srec_ext = ".S19";
char path[30]; char path[30];
if (fileinfo.fname[0] != '\0') /* found a file */ if (fileinfo.fname[0] != '\0') /* found a file */
{ {
if (strncmp(&fileinfo.fname[13 - 4], ext, 4) == 0) /* we have a .S19 file */ if (strncmp(&fileinfo.fname[13 - 4], srec_ext, 4) == 0) /* we have a .S19 file */
{ {
/*
* build path + filename
*/
strcpy(path, bastest_str); strcpy(path, bastest_str);
strncat(path, fileinfo.fname, 13); strncat(path, fileinfo.fname, 13);
/*
* load file
*/
if (srec_load(path) != OK) if (srec_load(path) != OK)
{ {
// error handling // error handling

View File

@@ -4,7 +4,7 @@
/* CP932 (Japanese Shift-JIS) */ /* CP932 (Japanese Shift-JIS) */
/*------------------------------------------------------------------------*/ /*------------------------------------------------------------------------*/
#include <ff.h> #include "ff.h"
#define _TINY_TABLE 0 #define _TINY_TABLE 0