Yep you're right. I ported this over from our own usb driver and messed the variables up.

Regards, Manuel

On Jan 17, 2013, at 8:12 PM, Marti Bolivar <notifications@github.com> wrote:

> In wirish/usb_serial.cpp:
> 
> >          if (old_txed != txed) {
> >              start = millis();
> >          }
> >          old_txed = txed;
> >      }
> > +
> > +
> > +    if (sent == USB_CDCACM_TX_EPSIZE) {
> Do you mean "txed" instead of sent? If you really mean "sent", why isn't this check inside the loop?
> 
> —
> Reply to this email directly or view it on GitHub.
> 
>