mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-14 08:55:06 +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
|
This project represents a community-driven effort to provide
|
||||||
an easy to build and easy to modify cartridge dumper.
|
an easy to build and easy to modify cartridge dumper.
|
||||||
|
|
||||||
Date: 01.11.2022
|
Date: 02.11.2022
|
||||||
Version: 11.2
|
Version: 11.2
|
||||||
|
|
||||||
SD lib: https://github.com/greiman/SdFat
|
SD lib: https://github.com/greiman/SdFat
|
||||||
@ -677,9 +677,8 @@ void rewind_line(FsFile& readfile, byte count = 1) {
|
|||||||
uint32_t position = readfile.curPosition();
|
uint32_t position = readfile.curPosition();
|
||||||
count++;
|
count++;
|
||||||
for (byte count_newline = 0; count_newline < count; count_newline++) {
|
for (byte count_newline = 0; count_newline < count; count_newline++) {
|
||||||
while (1) {
|
while (position) {
|
||||||
if (readfile.curPosition() == 0)
|
position--;
|
||||||
break;
|
|
||||||
readfile.seekCur(-1);
|
readfile.seekCur(-1);
|
||||||
if (readfile.peek() == '\n')
|
if (readfile.peek() == '\n')
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user