So you suggest we rename it to "sending_packet" or something like that? It is only ever checked for == 0, and set to 0.

Regards, Manuel

On Jan 17, 2013, at 8:10 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) {
> > +      while (usb_cdcacm_get_pending() != 0) {
> I see you're relying on the behavior you introduced in usb_cdcacm.c -- the meaning of usb_cdcacm_get_pending() is the number of unsent bytes, not whether or not there are any unsent bytes.
> 
> —
> Reply to this email directly or view it on GitHub.
> 
>