Changes between Version 5 and Version 6 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/FindFlashDrive


Ignore:
Timestamp:
05/17/24 12:37:32 (6 months ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/FindFlashDrive

    v5 v6  
    2323{{{
    2424   int result;
    25    char writeFilePath[180];
     25   char usbFilePath[180];
    2626#if ARM64
    2727   vector<string> pathList;
     
    3232      result = 0;
    3333      // 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());
    3636   }
    3737#else
    3838   result = system("mount -t vfat /dev/sda1 /mnt/fl1");
    39    strcpy(writeFilePath, "/mnt/fl1/data.csv");
     39   strcpy(usbFilePath, "/mnt/fl1/data.csv");
    4040#endif
    4141   if(result != 0) {