10000 Merge pull request #7234 from jepler/espressif-uart-console-break · kdb424/circuitpython@d4834cb · GitHub
[go: up one dir, main page]

Skip to content

Commit d4834cb

Browse files
authored
Merge pull request adafruit#7234 from jepler/espressif-uart-console-break
Interrupt on UART 'break'
2 parents 96fc85c + 4e0f8e7 commit d4834cb

File tree

1 file changed

+2
-1
CA69 lines changed
  • ports/espressif/common-hal/busio

1 file changed

+2
-1
lines changed

ports/espressif/common-hal/busio/UART.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ static void uart_event_task(void *param) {
4949
while (true) {
5050
if (xQueueReceive(self->event_queue, &event, portMAX_DELAY)) {
5151
switch (event.type) {
52+
case UART_BREAK:
5253
case UART_PATTERN_DET:
53-
// When the console uart receives CTRL+C, wake the main task and schedule a keyboard interrupt
54+
// When the console uart receives CTRL+C or BREAK, wake the main task and schedule a keyboard interrupt
5455
if (self->is_console) {
5556
port_wake_main_task();
5657
if (mp_interrupt_char == CHAR_CTRL_C) {

0 commit comments

Comments
 (0)
0