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.
This commit is contained in:
David Kuder 2023-05-02 16:18:10 -04:00
parent 594af38236
commit dd9fa40678
1 changed files with 3 additions and 2 deletions

View File

@ -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();