Closed incanus closed 3 years ago
Thanks! I think your solution is the correct one, I'll have a look. Thanks for testing this, unfortunately I don't have serial hardware so I depend on shims and careful reading of the code
I've updated this in develop
branch, should be included in next release.
Bug report
Problem
With Python 3 and pySerial 3.4,
OPEN
crashes due to bytes passed instead of a string for the parity argument. In Python 2 with the same pySerial, it works fine since this is passed directly as a string.Steps
com1=PORT:/dev/tty.usbserial-0001
OPEN "COM1:9600,N,8,1,,CS,DS" as #1
Crash log
Notes
A simple fix which seems to work in both Python 2 & 3 is amending
pcbasic/basic/devices/ports.py
as follows:All of the other arguments in that section are numeric and don't experience the problem.