We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4587080 + 12f3d9d commit 70c7192Copy full SHA for 70c7192
hal/tests/TESTS/pin_names/arduino_uno/main.cpp
@@ -155,7 +155,9 @@ void UART_test()
155
156
// 3. check if Arduino_uno pins are not using the same UART instance as console
157
int console_uart = pinmap_peripheral(CONSOLE_TX, serial_tx_pinmap());
158
- TEST_ASSERT_NOT_EQUAL(console_uart, pinmap_peripheral(TX_pin, serial_tx_pinmap()));
+ if (console_uart != 0) {
159
+ TEST_ASSERT_NOT_EQUAL(console_uart, pinmap_peripheral(TX_pin, serial_tx_pinmap()));
160
+ }
161
162
// 4. check if UART pins can be initialized
163
BufferedSerial TEST(TX_pin, RX_pin);
0 commit comments