ampledata / dummyserial

Dummy Serial module for mocking / testing / simulating Python Serial Interfaces.
Other
17 stars 7 forks source link

out_waiting / outWaiting should be in_waiting / inWaiting actually #1

Open olfway opened 8 years ago

olfway commented 8 years ago

Hi!

It seems out_waiting is named wrong in dummyserial, as it is "in_waiting" in pyserial:

>>> s = serial.Serial('/dev/ttyUSB1', 115200, timeout=15)
>>> s.write(b'AT\r')
3
>>> s.inWaiting()
6
>>> s.read(s.inWaiting())
b'\r\nOK\r\n'
glinders commented 7 months ago

Since version 3.0, pyserial implements in_waiting and out_waiting. Package dummyserial only implements out_waiting.

So, it is not named incorrectly, but in_waiting is missing.