No actually this is correct, txed is checked against loop, and we need to know if the last usb packet sent out is 64 bytes, not the complete amount of data.

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.
> 
>