   Usb.Task();
   usbstate = Usb.getUsbTaskState();
 
-  if (usbstate != laststate) 
-	{
+  if (usbstate != laststate) {
     laststate = usbstate;
 
     switch (usbstate) {


  if ( Usb.getUsbTaskState() == USB_STATE_RUNNING )
  {
		MIDI_poll();
  }

}

// Disconnect Callback
void disconnectionCallback(void)
{
  Serial.println("Disconnected! \r\n");

uint8_t txPayload[TXRX_BUF_LEN] = {0,};
uint8_t rxPayload[TXRX_BUF_LEN] = {0,};

GattCharacteristic  txCharacteristic
  (uart_tx_uuid, txPayload, 1, 20,
  GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_WRITE |
  GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_WRITE_WITHOUT_RESPONSE |
  GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY |
  GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_READ);

GattCharacteristic *uartChars[] = {&txCharacteristic};
GattService         uartService(uart_base_uuid, uartChars,
                                sizeof(uartChars) / sizeof(GattCharacteristic *));

/* Parser States: START (uninitialized), MIDI, SYSEX, RUNNING MSG*/
typedef enum { STRT, MIDI, SYSEX, RUN} OutParserState;

/*******************************************************************************
 * INITIALIZE USB MIDI Variables
