diff --git a/code/application/source/sf_app/code/source/fileMng/sf_file.c b/code/application/source/sf_app/code/source/fileMng/sf_file.c index f5d47b4fa..7492e3f82 100755 --- a/code/application/source/sf_app/code/source/fileMng/sf_file.c +++ b/code/application/source/sf_app/code/source/fileMng/sf_file.c @@ -1198,7 +1198,7 @@ UINT32 sf_create_dailyreport_file(void) sprintf(str, "OFF#"); SF_STRCAT(cfgTmp, (const char *)str); - if(pPara->FtpSwitch) + if(1 != pPara->FtpSwitch) sprintf(str, "ON#"); else sprintf(str, "OFF#");