lancaster-university / microbit-dal

http://lancaster-university.github.io/microbit-docs
Other
256 stars 130 forks source link

MicroBitFile::remove doesn't work #422

Open martinwork opened 5 years ago

martinwork commented 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();