   int lastPct = -1;
   for (int i = 0; i < numBatches; i++) {
     SerialUSB.write(BUFFER, BATCH_SIZE);
-    int pct = (i * 100) / numBatches;
-    if (pct % 5 == 0 && pct != lastPct) {
-      // Serial.print(pct);
-      // Serial.print("..");
-      lastPct = pct;
-    }
   }
 
   for (int i = 0; i < count - BATCH_SIZE * numBatches; i++) {
     SerialUSB.write(CHAR);
   }
-  // Serial.println();
 }
 
-void setFullSpeed() {
-  // is this right? i think we're already at full speed
-  // from CMSIS/Device/ATMEL/samd21/include/component/usb.h
-  // USB->DEVICE.CTRLB.bit.SPDCONF = USB_DEVICE_CTRLB_SPDCONF_0;
-}
 
 void loop(void) {
 }


void setup()
{
  // Serial.begin(9600);
  SerialUSB.begin(BAUD);
  while(!SerialUSB);

  usbInfo();
  setFullSpeed();
  usbInfo();

  // Serial.print("SIZE=");
  // Serial.println(SIZE);

  // Serial.print("BAUD=");
  // Serial.println(BAUD);

  // Serial.print("BATCH_SIZE=");
  // Serial.println(BATCH_SIZE);


  for (int i = 0; i < BATCH_SIZE; i++) {
    BUFFER[i] = CHAR;
  }
  unsigned long t1 = millis();


  SerialUSB.println(SIZE, DEC);
  sendBytes(SIZE);

const uint8_t EOT = 0x04;
const uint8_t CHAR = 'x';

const unsigned long SIZE = 1024 * 10 * 10;

// arduino/samd/cores/arduino/USB/samd21_device.c indicated 128 is the largest
// buffer we can use safely.
