Update Cart_Reader.ino

This commit is contained in:
sanni 2022-11-02 00:44:16 +01:00
parent a3b1882e88
commit 044e90f575

View File

@ -4,7 +4,7 @@
This project represents a community-driven effort to provide
an easy to build and easy to modify cartridge dumper.
Date: 01.11.2022
Date: 02.11.2022
Version: 11.2
SD lib: https://github.com/greiman/SdFat
@ -677,9 +677,8 @@ void rewind_line(FsFile& readfile, byte count = 1) {
uint32_t position = readfile.curPosition();
count++;
for (byte count_newline = 0; count_newline < count; count_newline++) {
while (1) {
if (readfile.curPosition() == 0)
break;
while (position) {
position--;
readfile.seekCur(-1);
if (readfile.peek() == '\n')
break;