Skip to content

Commit

Permalink
Merge pull request #15124 from jeromecoutant/PR_NORDIC
Browse files Browse the repository at this point in the history
pin_names-arduino_uno test : UART test case update
  • Loading branch information
0xc0170 authored Oct 4, 2021
2 parents 4587080 + 12f3d9d commit 70c7192
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hal/tests/TESTS/pin_names/arduino_uno/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ void UART_test()

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

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

0 comments on commit 70c7192

Please sign in to comment.