       serialReadPos = 0;
       return 1;
     }
+    return 0;
   }
   //put the char into the buffer
   serialReadBuf[serialReadPos] = c;

  pinMode(16, OUTPUT); //Green Status LED
  pinMode(15, INPUT_PULLUP ); //Always ON/USB Controlled switch

  Serial.begin(9600);

  Set5V(false);
  Set3_3V(false);

    ; // wait for serial port to connect. Needed for native USB port only
  }
  Serial.println("[I] USB switcher booted up.");
  digitalWrite(10, HIGH); //Yellow Status LED
  digitalWrite(16, HIGH);  //Green Status LED  
}

void Set5V(bool s)
