Bill Greiman
Bill Greiman
That format is often referred to a "Super Floppy" format. Super Floppies were removable drives with about 200-300 MB with no partition table. SdFat has code to mount this format...
I managed to create a SD with your format. I used the SdFormatter example to erase a SD then used Windows Disk Manager to format the SD like a floppy....
Here is a better fix. Use this for the first two functions ins SdFat.h: ``` //---------------------------------------------------------------------------- /** Initialize SD card and file system for SPI mode. * * \param[in] spiConfig...
I published this mod plus other fixes and mods as [SdFat-beta](https://github.com/greiman/SdFat-beta). After about a month I will make it the release version.
I use O_TRUNC in many examples so I think it works: > C:\Users\Bill\Documents\ArduinoSdFat\libraries\SdFat\examples\AvrAdcLogger\AvrAdcLogger.ino (1 hit) > Line 627: if (!csvFile.open(csvName, O_WRONLY | O_CREAT | O_TRUNC)) { > C:\Users\Bill\Documents\ArduinoSdFat\libraries\SdFat\examples\bench\bench.ino (1 hit)...
> File f = ...; > File f2 = f; > f.read(...); > > advances position also in f2. SdFat doesn't do that, which makes more sense to me.) This...
SdFat was the first SD library for Arduino and the File classes have always been file descriptor structures. Too many apps have been written since 2009 to change it. The...
I really don't want to more than one open File structure in a program. what does this do? ``` #include "SdFat.h" SdFat sd; File file1; File file2; void setup() {...
You can have a file open with two file descriptors on ESP32 and have scrambled file problems. ``` #include "SdFat.h" SdFat sd; File file1; File file2; void setup() { Serial.begin(9600);...
I only have a vague understanding of move constructors. The cases I know about move a chunk of the heap from one object to another. FsFile does not use the...