Skip to content

Commit 70c7192

Browse files
authored
Merge pull request #15124 from jeromecoutant/PR_NORDIC
pin_names-arduino_uno test : UART test case update
2 parents 4587080 + 12f3d9d commit 70c7192

File tree

1 file changed

+3
-1
lines changed
  • hal/tests/TESTS/pin_names/arduino_uno

1 file changed

+3
-1
lines changed

hal/tests/TESTS/pin_names/arduino_uno/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ void UART_test()
155155

156156
// 3. check if Arduino_uno pins are not using the same UART instance as console
157157
int console_uart = pinmap_peripheral(CONSOLE_TX, serial_tx_pinmap());
158-
TEST_ASSERT_NOT_EQUAL(console_uart, pinmap_peripheral(TX_pin, serial_tx_pinmap()));
158+
if (console_uart != 0) {
159+
TEST_ASSERT_NOT_EQUAL(console_uart, pinmap_peripheral(TX_pin, serial_tx_pinmap()));
160+
}
159161

160162
// 4. check if UART pins can be initialized
161163
BufferedSerial TEST(TX_pin, RX_pin);

0 commit comments

Comments
 (0)