The get_serial() inside bitio/__init__.py uses s.databits as a configuration property.
pyserial has no missing attribute protection in it's class, so this just sets an attribute on the class that is never used internally.
pyserial uses bytesize internally, and this defaults to 8 bits (which is what we assume, and what the majority of all UART configurations use these days). micro:bit also always uses 8 bits.
The get_serial() inside
bitio/__init__.py
uses s.databits as a configuration property.pyserial has no missing attribute protection in it's class, so this just sets an attribute on the class that is never used internally.
pyserial uses bytesize internally, and this defaults to 8 bits (which is what we assume, and what the majority of all UART configurations use these days). micro:bit also always uses 8 bits.
However, for completeness, this should be fixed.
should be: