mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 19:54:57 +08:00
Stubs for waitReadable and waitByteTimes on Windows.
This commit is contained in:
parent
d74c74bf15
commit
5ec56d8294
@ -288,6 +288,19 @@ Serial::SerialImpl::available ()
|
|||||||
return static_cast<size_t>(cs.cbInQue);
|
return static_cast<size_t>(cs.cbInQue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
Serial::SerialImpl::waitReadable (uint32_t timeout)
|
||||||
|
{
|
||||||
|
THROW (IOException, "waitReadable is not implemented on Windows.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Serial::SerialImpl::waitByteTimes (size_t count)
|
||||||
|
{
|
||||||
|
THROW (IOException, "waitByteTimes is not implemented on Windows.");
|
||||||
|
}
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
Serial::SerialImpl::read (uint8_t *buf, size_t size)
|
Serial::SerialImpl::read (uint8_t *buf, size_t size)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user