Skip to content

Commit f6a7ef7

Browse files
committed
Add RAM cache attribute to ISR
Required starting with ESP8266 board package 2.5.1 esp8266/Arduino#5995
1 parent 900b8f9 commit f6a7ef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Arduino/MPU6050/examples/MPU6050_DMP6_ESPWiFi/MPU6050_DMP6_ESPWiFi.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ const unsigned int outPort = 9999; // remote port to receive OSC
146146
// ================================================================
147147

148148
volatile bool mpuInterrupt = false; // indicates whether MPU interrupt pin has gone high
149-
void dmpDataReady() {
149+
void ICACHE_RAM_ATTR dmpDataReady() {
150150
mpuInterrupt = true;
151151
}
152152

0 commit comments

Comments
 (0)