]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Inverted serial port Ring Indicator
authorToni Wilen <twilen@winuae.net>
Sat, 7 Jan 2023 12:37:59 +0000 (14:37 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 7 Jan 2023 12:37:59 +0000 (14:37 +0200)
od-win32/serial_win32.cpp

index d7f6eb6672105cfbd0034e9ec13668717eded469..33597757593fabe043af41493688d5059710c268 100644 (file)
@@ -1082,15 +1082,15 @@ uae_u8 serial_readstatus(uae_u8 v, uae_u8 dir)
                }
        }
 
+       // SEL == RI
        if (!isprinter()) {
-               // SEL == RI
                serbits |= 0x04;
        } else {
                serbits &= ~0x04;
                serbits |= v & 0x04;
        }
 
-       if (!(status & TIOCM_RI)) {
+       if (status & TIOCM_RI) {
                serbits &= ~0x04;
        }