From dd9fa40678f4a113b5e5448f06a771aed7595a74 Mon Sep 17 00:00:00 2001 From: David Kuder Date: Tue, 2 May 2023 16:18:10 -0400 Subject: [PATCH] Disable the test screen on any bus activity May need to make this on consistent bus activity. The card was remaining in the test pattern if reset and no soft switches were toggled afterward. --- vga/render.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vga/render.c b/vga/render.c index 62724df..f1f21a7 100644 --- a/vga/render.c +++ b/vga/render.c @@ -202,8 +202,9 @@ void DELAYED_COPY_CODE(render_loop)() { if(internal_flags & IFLAGS_TEST) { render_testpattern(); - // Automatically dismiss the test pattern when the Apple II is seen. - if(((soft_switches & SOFTSW_MODE_MASK) != 0) && (testdone == 0)) { + // Assume the RP2040 has been hard reset and try to default to text display + if(busactive && (testdone == 0)) { // was ((soft_switches & SOFTSW_MODE_MASK) != 0) + soft_switches |= SOFTSW_TEXT_MODE; internal_flags &= ~IFLAGS_TEST; testdone = 1; render_about_init();