diff --git a/src/fileReader.c b/src/fileReader.c index ef6560b..8eee446 100644 --- a/src/fileReader.c +++ b/src/fileReader.c @@ -54,7 +54,7 @@ void getBytes(uint8_t* buffer, unsigned long numBytes, bool isLast) { //If we've reached end of file, close file and open next file if (file.offset == file.size) { closeCurrentFile(); - //Unless we've reached the end, in that case don't open next file in case we've reached the end of the last disk + if (!isLast) { openNextFile(); } else if (remainingBytes > 0) {