#396 fix unit test problems

This commit is contained in:
mstroh76
2025-09-28 19:19:26 +02:00
parent a687840a87
commit b3394383eb
2 changed files with 2 additions and 1 deletions

View File

@@ -57,6 +57,7 @@ TEST_F(ISRRestart, RestartISR) {
EXPECT_EQ(
wiringPiISR(LISTENER_PIN, INT_EDGE_FALLING, ISRRestart::TriggerCountDown),
0);
count=1;
delay(100);
digitalWrite(TRIGGER_PIN, HIGH);
delay(10);

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
/**
* Tests ISR for rising edges.