fixed comments
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user