Skip to content

Commit ef3ca26

Browse files
committed
fix(test): Invert pins only for P4
1 parent a7f016c commit ef3ca26

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/validation/uart/uart.ino

+5-1
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,12 @@ void setup() {
498498

499499
uart_test_configs = {
500500
#if SOC_UART_HP_NUM >= 2 && defined(RX1) && defined(TX1)
501-
// inverting RX1<->TX1 because ESP32-P4 has a problem with loopback on RX1 :: GPIO11 <-- UART_TX SGINAL
501+
#if CONFIG_IDF_TARGET_ESP32P4
502+
// inverting RX1<->TX1 because ESP32-P4 has a problem with loopback on RX1 :: GPIO11 <-- UART_TX SIGNAL
502503
new UARTTestConfig(1, Serial1, TX1, RX1),
504+
#else
505+
new UARTTestConfig(1, Serial1, RX1, TX1),
506+
#endif
503507
#endif
504508
#if SOC_UART_HP_NUM >= 3 && defined(RX2) && defined(TX2)
505509
new UARTTestConfig(2, Serial2, RX2, TX2),

0 commit comments

Comments
 (0)