Skip to content

Commit cdc55ea

Browse files
committed
src/corelibs/digitalio: Opendrain high assertion only for psoc6.
1 parent 06c8810 commit cdc55ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/corelibs/digitalio/test_digitalio_single.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ TEST_IFX(digitalio_single_internal, test_digitalio_read_write_output_opendrain)
114114
TEST_ASSERT_EQUAL_MESSAGE(LOW, digitalRead(TEST_PIN_DIGITAL_IO_INPUT), "Input Pin should be set to LOW initially");
115115

116116
digitalWrite(TEST_PIN_DIGITAL_IO_OUTPUT, HIGH);
117+
#if defined(ARDUINO_ARCH_PSOC6)
118+
TEST_ASSERT_EQUAL_MESSAGE(HIGH, digitalRead(TEST_PIN_DIGITAL_IO_INPUT), "Input Pin should be set to HIGH");
119+
#endif // ARDUINO_ARCH_PSOC6
117120
// Skip assert as it may not be set to HIGH due to open-drain configuration
118121
digitalWrite(TEST_PIN_DIGITAL_IO_OUTPUT, LOW);
119122
TEST_ASSERT_EQUAL_MESSAGE(LOW, digitalRead(TEST_PIN_DIGITAL_IO_INPUT), "Input Pin should be set to LOW");

0 commit comments

Comments
 (0)