   webSocket.onEvent(webSocketEvent);
 }
 
-void initHardware()
-{
+void initHardware(){
   Serial.begin(2000000);
   Serial.println(F("\r\n"));
   Serial.println(F("            FHTbot Serial Connected\r\n"));

WiFiClient serverClients[MAX_SRV_CLIENTS];
int currentClient = 0;
boolean pingOn = false;
long nextBoredBotEvent = 0;
int boredBotTimeout = 60000;             //in ms
boolean leftBumperHit = false;
boolean rightBumperHit = false;
boolean autoMode = false; 				 // drive mode with no client connected
long autoModeNextUpdate = 0;
long autoModeNextEvent = 0;
//#define Diag                           // if not defined disables serial communication after initial feedback
long timerPing;


void Stop(void)
{
  motors.manualDrive(0,0);
  setColor(RgbColor(0,0,0));             // turn off LED's to save power
  pingOn = false;                        // turn off ping to save power
  driverAssist = false;
}

void CheckHeartBeat(void)
{
	updateMotorSpeed(); 				// check battery level and adjust speed
  if (HeartBeatRcvd == true)
  {

    theBuffer.close();
    return;
  }
  uint bufferLength = theBuffer.size();
  if ( serverClients[currentClient].write(theBuffer,2920) <  bufferLength){
    // failed to send all file
  }
