From 6055524845f06f7487ca5361c459a60b2e9e8ca4 Mon Sep 17 00:00:00 2001 From: chacha <15073640+cclecle@users.noreply.github.com> Date: Fri, 27 Feb 2026 22:01:39 +0000 Subject: [PATCH] . --- main.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/main.c b/main.c index 1434c5c..e7cad8f 100644 --- a/main.c +++ b/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;