hak5darren/USB-Rubber-Ducky — pull request #9 by timmattison (2014-07-29 15:51:43+00:00)
Title: Fix for DEFAULT_DELAY values larger than 127

Default delay values larger than 127 previously got trashed when converting to a byte. Lots of scripts use DEFAULT_DELAY 200 which ends up effectively as DEFAULT_DELAY -57 when the casting is done. Since the logic only adds a delay command to the binary if it is greater than zero it gets skipped every time and no delays are entered.