mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-22 21:23:07 +03:00
detaching could leave a running timer which would cause issues. Further, detaching could truncate the last pulse causing a invalid movement. This change moves detaching into the ISR so it can maintain the last pulse and not start any more timers if not needed.