Skip to content

Commit 7176970

Browse files
authored
fix(uart): new testing loopback API
Update periman.ino to use new UART loopback test API
1 parent 2b0672e commit 7176970

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/validation/periman/periman.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void setup_test(String test_name, int8_t rx_pin = UART1_RX_DEFAULT, int8_t tx_pi
7272
pinMode(uart1_rx_pin, INPUT_PULLUP);
7373
pinMode(uart1_tx_pin, OUTPUT);
7474
Serial1.setPins(uart1_rx_pin, uart1_tx_pin);
75-
uart_internal_loopback(1, uart1_rx_pin);
75+
uart_internal_loopback(1, true);
7676
delay(100);
7777
log_v("Running %s test", test_name.c_str());
7878
}
@@ -88,7 +88,7 @@ void teardown_test(void) {
8888
Serial1.flush();
8989

9090
Serial1.setPins(uart1_rx_pin, uart1_tx_pin);
91-
uart_internal_loopback(1, uart1_rx_pin);
91+
uart_internal_loopback(1, true);
9292
delay(100);
9393
}
9494

@@ -280,7 +280,7 @@ void setup() {
280280
delay(10);
281281
}
282282
Serial1.onReceive(onReceive_cb);
283-
uart_internal_loopback(1, uart1_rx_pin);
283+
uart_internal_loopback(1, true);
284284

285285
gpio_test();
286286
sigmadelta_test();

0 commit comments

Comments
 (0)