Open martinwork opened 5 years ago
If the file is open, MicroBitFileSystem complains because it can't open the file. If the file is closed then MicroBitFile::remove faults the fileHandle. This would work:
int MicroBitFile::remove() { if ( fileHandle >= 0) close();
If the file is open, MicroBitFileSystem complains because it can't open the file. If the file is closed then MicroBitFile::remove faults the fileHandle. This would work:
int MicroBitFile::remove() { if ( fileHandle >= 0) close();