DTrain123 wrote:I had a look at core_esp8266_wiring_digital.c where attachInterrupt is defined.I guess you're right about that; haven't been looking inside the core code much yet.
[...]
So interrupts have already been disabled before your method gets called. So no need to call noInterrupts() in your interrupt handler code.
This is what the Arduino site says about interrupts:
Arduino website wrote:If your sketch uses multiple ISRs, only one can run at a time, other interrupts will be executed after the current one finishes in an order that depends on the priority they have.