pc_serial: Fix TTYSETRTS

Same fix as hrev42151 for usb_serial:
When determining the bit to be set for RTS/DTR there was a missing comparison
to op which would've caused a wrong line state to be set.
This commit is contained in:
François Revol
2014-08-17 00:20:55 +02:00
parent 13b28a29b8
commit 8e03cf4b31
@@ -314,7 +314,7 @@ SerialDevice::Service(struct tty *tty, uint32 op, void *buffer, size_t length)
case TTYSETRTS:
{
bool set = *(bool *)buffer;
uint8 bit = TTYSETDTR ? MCR_DTR : MCR_RTS;
uint8 bit = op == TTYSETDTR ? MCR_DTR : MCR_RTS;
if (set)
OrReg8(MCR, bit);
else