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 a40be01 commit eb73cf7Copy full SHA for eb73cf7
Encoder.h
@@ -210,7 +210,11 @@ class Encoder
210
// update() is not meant to be called from outside Encoder,
211
// but it is public to allow static interrupt routines.
212
// DO NOT call update() directly from sketches.
213
+#if defined(IRAM_ATTR)
214
+ static IRAM_ATTR void update(Encoder_internal_state_t *arg) {
215
+#else
216
static void update(Encoder_internal_state_t *arg) {
217
+#endif
218
#if defined(__AVR__)
219
// The compiler believes this is just 1 line of code, so
220
// it will inline this function into each interrupt
0 commit comments