mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-30 08:24:14 +01:00
Update Cart_Reader.ino
This commit is contained in:
parent
a3b1882e88
commit
044e90f575
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user