summaryrefslogtreecommitdiff
path: root/ports/esp32/tools/metrics_esp32.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-07-17 16:49:26 +1000
committerDamien George <damien@micropython.org>2025-07-23 12:50:29 +1000
commit79b2d4ff222636075a9b6530e1694fa277132106 (patch)
treed793685d4b76a70b94a63f2414370cedb51f813f /ports/esp32/tools/metrics_esp32.py
parent941b7e35acd8bd7597ba6a6111cb8e94662094b5 (diff)
esp32/machine_uart: Improve sendbreak so it doesn't reconfig the UART.
Currently, `UART.sendbreak()` on esp32 will reconfigure the UART to a slower baudrate and send out a null byte, to synthesise a break condition. That's not great because it changes the baudrate of the RX path as well, which could miss incoming bytes while sending the break. This commit changes the sendbreak implementation to just reconfigure the TX pin as GPIO in output mode, and hold the pin low for the required duration. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'ports/esp32/tools/metrics_esp32.py')
0 files changed, 0 insertions, 0 deletions