Merge pull request #414 from WiringPi/mstroh76-patch-1

Unit test: Adjust for Pi1/Zero test hardware
This commit is contained in:
Manfred Wallner
2026-02-08 21:28:11 +01:00
committed by GitHub

View File

@@ -4,7 +4,7 @@
#define TRIGGER_PIN 0 // BCM 17
#define LISTENER_PIN 1 // BCM 18
#define ANOTHER_LISTENER_PIN 6 // BCM 25
#define ANOTHER_LISTENER_PIN 26 // BCM 12
struct counters {
uint32_t *primary;
@@ -86,10 +86,9 @@ TEST_F(ISRRising2, ThreeTriggers) {
delay(10);
count = 0;
for (int i = 0; i < 6; ++i) {
delay(20);
digitalWrite(TRIGGER_PIN, i % 2);
delay(20);
}
delay(20);
EXPECT_EQ(count, 3u);
}