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.
1 parent 5756b2d commit 51ff9fcCopy full SHA for 51ff9fc
libraries/ESP32/examples/GPIO/FunctionalInterruptLambda/FunctionalInterruptLambda.ino
@@ -74,7 +74,7 @@ volatile bool ledStateChanged = false; // Flag to indicate LED needs updating
74
75
// Variables to demonstrate lambda captures
76
volatile uint32_t totalInterrupts = 0;
77
-unsigned long lastInterruptTime = 0;
+volatile unsigned long lastInterruptTime = 0;
78
79
// Debouncing variables (volatile for ISR safety)
80
volatile unsigned long lastButton1InterruptTime = 0;
0 commit comments