Commit 458a7e782da1cc3c75cbe435092e8794dfa76e94

Authored by Jeroen88
1 parent ef17fd94

Added IRAM_ATTR or ICACHE_RAM_ATTR for handleInterrupt implementation

Showing 1 changed file with 7 additions and 1 deletions
src/EasyOpenTherm.cpp
@@ -432,7 +432,13 @@ void OTPhysicalLayer::sendBit(uint8_t va @@ -432,7 +432,13 @@ void OTPhysicalLayer::sendBit(uint8_t va
432 } 432 }
433 433
434 434
435 - void OTPhysicalLayer::handleInterrupt() { 435 +#if defined(ESP32)
  436 +void IRAM_ATTR OTPhysicalLayer::handleInterrupt() {
  437 +#elif defined(ESP8266)
  438 +void ICACHE_RAM_ATTR OTPhysicalLayer::handleInterrupt() {
  439 +#else
  440 +void OTPhysicalLayer::handleInterrupt() {
  441 +#endif
436 static volatile uint32_t lastTimestamp; 442 static volatile uint32_t lastTimestamp;
437 static volatile uint32_t mask; 443 static volatile uint32_t mask;
438 444