From 53a16b3a29a63a003dd279a7ed9ae9fbc20bd418 Mon Sep 17 00:00:00 2001 From: steve Date: Sat, 30 Sep 2023 13:37:08 +0100 Subject: [PATCH] bugfixes --- flash_filer.cpp | 2 +- pia.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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) {