diff --git a/flash_filer.cpp b/flash_filer.cpp index 1d3bead..97cbbe1 100644 --- a/flash_filer.cpp +++ b/flash_filer.cpp @@ -82,7 +82,7 @@ const char *flash_filer::advance() { static char buf[32]; while (true) { if (dir.next()) { - file = dir.openFile("rb+"); + file = dir.openFile("r+"); break; } dir = SPIFFS.openDir(_programs); diff --git a/pia.cpp b/pia.cpp index c1612b9..81d2ea6 100644 --- a/pia.cpp +++ b/pia.cpp @@ -59,6 +59,7 @@ uint8_t PIA::read(Memory::address a) { case 3: return read_crb(); } + return 0xff; } void PIA::checkpoint(Stream &s) {