summaryrefslogtreecommitdiff
path: root/examples/usercmodule/cppexample/micropython.cmake
diff options
context:
space:
mode:
authorMaarten van der Schrieck <maarten@thingsconnected.nl>2023-10-24 10:16:00 +0200
committerDamien George <damien@micropython.org>2023-11-03 17:33:28 +1100
commitd95f5aa01131f3aa669867ebdde391f9db277846 (patch)
tree7b0013f905f431b07e48b5d70db9dc7a7c9a8137 /examples/usercmodule/cppexample/micropython.cmake
parent47ea831c0e741722a9e7a94bb453947cff5f66d8 (diff)
rp2/machine_uart: Fix handling of serial break condition.
The FIFO reports not only the bytes read, but also 4 error bits. These were not checked, leading to NUL value read in case of break and possible garbage bytes being written on parity/framing error. This patch addresses the issue that NUL bytes are incorrectly read on break, and at least provides the boilerplate code and comments for error handling, that may be implemented in the future. Signed-off-by: Maarten van der Schrieck <maarten@thingsconnected.nl>
Diffstat (limited to 'examples/usercmodule/cppexample/micropython.cmake')
0 files changed, 0 insertions, 0 deletions