Changes between Version 5 and Version 6 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/FindFlashDrive
- Timestamp:
- 05/17/24 12:37:32 (7 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/FindFlashDrive
v5 v6 23 23 {{{ 24 24 int result; 25 char writeFilePath[180];25 char usbFilePath[180]; 26 26 #if ARM64 27 27 vector<string> pathList; … … 32 32 result = 0; 33 33 // pathList item will already have a trailing slash 34 // so writeFilePath will become something like "/run/media/sda1/data.csv"35 sprintf_s( writeFilePath, "%sdata.csv", pathList[0].c_str());34 // so usbFilePath will become something like "/run/media/sda1/data.csv" 35 sprintf_s(usbFilePath, "%sdata.csv", pathList[0].c_str()); 36 36 } 37 37 #else 38 38 result = system("mount -t vfat /dev/sda1 /mnt/fl1"); 39 strcpy( writeFilePath, "/mnt/fl1/data.csv");39 strcpy(usbFilePath, "/mnt/fl1/data.csv"); 40 40 #endif 41 41 if(result != 0) {