.
This commit is contained in:
22
main.c
22
main.c
@@ -118,6 +118,8 @@ int main(int argc, char **argv)
|
||||
int option_index = 0;
|
||||
int opt;
|
||||
bool bQuit = false;
|
||||
//bool bTestTMU0 = false;
|
||||
//bool bTestTMU1 = false;
|
||||
|
||||
while((opt=getopt_long(argc,argv,"hvn:e:l:",long_args,&option_index)) != -1)
|
||||
{
|
||||
@@ -157,11 +159,11 @@ int main(int argc, char **argv)
|
||||
break;
|
||||
|
||||
case 'l':
|
||||
strcpy_s(sOptions.szLogFileName,optarg,2048);
|
||||
strcpy_s(sOptions.szLogFileName, 2048, optarg);
|
||||
break;
|
||||
|
||||
case 't':
|
||||
strcpy_s(sOptions.szTSVFile,optarg,2048);
|
||||
strcpy_s(sOptions.szTSVFile, 2048, optarg);
|
||||
break;
|
||||
|
||||
case 'h':
|
||||
@@ -188,17 +190,19 @@ int main(int argc, char **argv)
|
||||
if(bQuit)
|
||||
return 0;
|
||||
|
||||
if(!bTestTMU0 && !bTestTMU1)
|
||||
if(!sOptions.bTestTMU0 && !sOptions.bTestTMU1)
|
||||
{
|
||||
bTestTMU0 = true;
|
||||
bTestTMU1 = true;
|
||||
sOptions.bTestTMU0 = true;
|
||||
sOptions.bTestTMU1 = true;
|
||||
}
|
||||
|
||||
if(!bTestTMUAddress && !bTestTMUData && !bTestTMUDataHuge)
|
||||
if( !sOptions.bTestTMUAddress &&
|
||||
!sOptions.bTestTMUData &&
|
||||
!sOptions.bTestTMUDataHuge)
|
||||
{
|
||||
bTestTMUAddress = true;
|
||||
bTestTMUData = true;
|
||||
bTestTMUDataHuge = true;
|
||||
sOptions.bTestTMUAddress = true;
|
||||
sOptions.bTestTMUData = true;
|
||||
sOptions.bTestTMUDataHuge = true;
|
||||
}
|
||||
|
||||
sst1DeviceInfoStruct devInfo;
|
||||
|
||||
Reference in New Issue
Block a user