Skip to content

Commit 56450a4

Browse files
esp32:Update machine_uart.c.
Signed-off-by: Vincent1-python <pywei201209@163.com>
1 parent 0d29f96 commit 56450a4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ports/esp32/machine_uart.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,14 @@ static void mp_machine_uart_init_helper(machine_uart_obj_t *self, size_t n_args,
293293
self->tx = 5;
294294
break;
295295
#endif
296+
#if SOC_UART_HP_NUM > 3
297+
case UART_NUM_3:
298+
break;
299+
#endif
300+
#if SOC_UART_HP_NUM > 4
301+
case UART_NUM_4:
302+
break;
303+
#endif
296304
case UART_NUM_MAX:
297305
assert(0); // Range is checked in mp_machine_uart_make_new, value should be unreachable
298306
}

0 commit comments

Comments
 (0)