Hi,
The attached patch fixes a problem where cy_wait_until_sent()
miscalculates (calculate -1 on a unsigned long) the "char_time"
parameter passed to schedule_timeout().
Fix that by making it a signed long, and checking for
negative value.
Please apply.