Migrated more types

This commit is contained in:
2024-07-13 15:12:45 +02:00
parent 3394e70767
commit cd6fecd8fb
3 changed files with 19 additions and 24 deletions
@@ -568,25 +568,25 @@ public partial class SerialPort : IDisposable
OnBreak();
}
uint i = 0;
MODEM_STATUS_FLAGS i = 0;
if ((eventMask & COMM_EVENT_MASK.EV_CTS) != 0)
{
i |= Win32Com.MS_CTS_ON;
i |= MODEM_STATUS_FLAGS.MS_CTS_ON;
}
if ((eventMask & COMM_EVENT_MASK.EV_DSR) != 0)
{
i |= Win32Com.MS_DSR_ON;
i |= MODEM_STATUS_FLAGS.MS_DSR_ON;
}
if ((eventMask & COMM_EVENT_MASK.EV_RLSD) != 0)
{
i |= Win32Com.MS_RLSD_ON;
i |= MODEM_STATUS_FLAGS.MS_RLSD_ON;
}
if ((eventMask & COMM_EVENT_MASK.EV_RING) != 0)
{
i |= Win32Com.MS_RING_ON;
i |= MODEM_STATUS_FLAGS.MS_RING_ON;
}
if (i != 0)
@@ -596,7 +596,7 @@ public partial class SerialPort : IDisposable
throw new CommPortException("IO Error [005]");
}
OnStatusChange(new ModemStatus((MODEM_STATUS_FLAGS)i), new ModemStatus((MODEM_STATUS_FLAGS)f));
OnStatusChange(new ModemStatus(i), new ModemStatus((MODEM_STATUS_FLAGS)f));
}
}
}