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