summaryrefslogtreecommitdiff
path: root/docs/esp32/tutorial
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2025-03-09 09:08:01 +0100
committerDamien George <damien@micropython.org>2025-03-25 12:41:21 +1100
commitb85ad4bd4128876908ed0493a1b1d3df3d972cf1 (patch)
tree0753d180da56f5b2b4f65fd771ef6c81bfedfe48 /docs/esp32/tutorial
parent1398e7fd20ef399a003e4e476eb7726126f42d66 (diff)
mimxrt/machine_uart: Fix rx/tx buffer allocation bug.
The buffer would be reset on every call to `uart.init()`. If no sizes were given, the buffer would be set to the default size 256. That made problems e.g. with PPP. Also, the RX buffer was not stored at the UART object and not visible to GC as being in use. Then a `gc.collect()` would eventually free the buffer. This commit fixes those issues, keeping the buffer size if not deliberately changed and allocating new buffers only if the size was changed. Signed-off-by: robert-hh <robert@hammelrath.com>
Diffstat (limited to 'docs/esp32/tutorial')
0 files changed, 0 insertions, 0 deletions