Skip to content

Commit

Permalink
Use common define for ESP8266 and ESP32
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspr committed Jul 4, 2021
1 parent 023f337 commit 1c216fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Encoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

// Use ICACHE_RAM_ATTR for ISRs to prevent ESP8266 resets
#if defined(ESP8266) || defined(ESP32)
#define ENCODER_ISR_ATTR ICACHE_RAM_ATTR
#define ENCODER_ISR_ATTR IRAM_ATTR
#else
#define ENCODER_ISR_ATTR
#endif
Expand Down

0 comments on commit 1c216fd

Please sign in to comment.