diff --git a/tests/periman/periman.ino b/tests/periman/periman.ino index 9828e236d22..e5ab26a77e4 100644 --- a/tests/periman/periman.ino +++ b/tests/periman/periman.ino @@ -52,7 +52,7 @@ void onReceive_cb(void) { void setUp(void) { log_v("Setting up next test"); Serial1.setPins(uart1_rx_pin, uart1_tx_pin); - uart_internal_loopback(1, RX1); + uart_internal_loopback(1, uart1_rx_pin); delay(100); log_v("Running test"); } @@ -66,7 +66,7 @@ void tearDown(void) { Serial1.flush(); Serial1.setPins(uart1_rx_pin, uart1_tx_pin); - uart_internal_loopback(1, RX1); + uart_internal_loopback(1, uart1_rx_pin); delay(100); test_executed = false; } @@ -234,7 +234,7 @@ void setup() { Serial1.begin(115200); while(!Serial1) { delay(10); } Serial1.onReceive(onReceive_cb); - uart_internal_loopback(1, RX1); + uart_internal_loopback(1, uart1_rx_pin); UNITY_BEGIN();