mirror of
				https://github.com/esp8266/Arduino.git
				synced 2025-10-31 15:50:55 +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.