Seeed_Arduino_FS icon indicating copy to clipboard operation
Seeed_Arduino_FS copied to clipboard

[update] add get drive number (letter) method

Open takkaO opened this issue 3 years ago • 2 comments

  • added getPhysicalDriveNumber( )
  • added getDriveLetter( )

In WioTerminal, I found a issue that my program not work correctly when using Flash (SFUD) and SD card at the same time. The cause is that the drive letter (drive number) of the path is not correctly identified during file processing.

To solve this problem, a drive letter should be added to the beginning of the file path (e.g. "0:/dir/test.txt"), but the library did not provide this functionality, so I propose to add it.

I also pullrequested to Seeed_Arduino_SFUD repo.

takkaO avatar May 19 '22 04:05 takkaO

@lakshanthad and this

Pillar1989 avatar May 23 '22 06:05 Pillar1989

Hello @takkaO,

Could you please share the program codes that you tested so that I can reproduce on my end, verify it and merge this PR?

I have also mentioned this in the pull request you made on the SFUD library.

Thank you.

lakshanthad avatar May 29 '22 17:05 lakshanthad