.
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 option_index = 0;
|
||||||
int opt;
|
int opt;
|
||||||
bool bQuit = false;
|
bool bQuit = false;
|
||||||
|
//bool bTestTMU0 = false;
|
||||||
|
//bool bTestTMU1 = false;
|
||||||
|
|
||||||
while((opt=getopt_long(argc,argv,"hvn:e:l:",long_args,&option_index)) != -1)
|
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;
|
break;
|
||||||
|
|
||||||
case 'l':
|
case 'l':
|
||||||
strcpy_s(sOptions.szLogFileName,optarg,2048);
|
strcpy_s(sOptions.szLogFileName, 2048, optarg);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 't':
|
case 't':
|
||||||
strcpy_s(sOptions.szTSVFile,optarg,2048);
|
strcpy_s(sOptions.szTSVFile, 2048, optarg);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'h':
|
case 'h':
|
||||||
@@ -188,17 +190,19 @@ int main(int argc, char **argv)
|
|||||||
if(bQuit)
|
if(bQuit)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if(!bTestTMU0 && !bTestTMU1)
|
if(!sOptions.bTestTMU0 && !sOptions.bTestTMU1)
|
||||||
{
|
{
|
||||||
bTestTMU0 = true;
|
sOptions.bTestTMU0 = true;
|
||||||
bTestTMU1 = true;
|
sOptions.bTestTMU1 = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!bTestTMUAddress && !bTestTMUData && !bTestTMUDataHuge)
|
if( !sOptions.bTestTMUAddress &&
|
||||||
|
!sOptions.bTestTMUData &&
|
||||||
|
!sOptions.bTestTMUDataHuge)
|
||||||
{
|
{
|
||||||
bTestTMUAddress = true;
|
sOptions.bTestTMUAddress = true;
|
||||||
bTestTMUData = true;
|
sOptions.bTestTMUData = true;
|
||||||
bTestTMUDataHuge = true;
|
sOptions.bTestTMUDataHuge = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
sst1DeviceInfoStruct devInfo;
|
sst1DeviceInfoStruct devInfo;
|
||||||
|
|||||||
Reference in New Issue
Block a user