fix potentially dodgy use of digitalPulse