Over 24 is detected as a short pulse.

Value used by disk91's modified version available from:
http://www.disk91.com/wp-content/uploads/2013/10/RcOok.zip.