   }
   Serial.flush();
 
-  delay(5000); // Wait for the serial program on the computer to startup before sending any data
+  delay(2500); // Wait 2.5 seconds for the serial program on the computer to startup before sending any data
 
   resetDone = currentMillis;
   serial_rx_buffer_reset[0] = 0xA1;

  serial_rx_buffer_disconnect[7] = (byte)((disconnectDone >> 8) & 0xFF);
  serial_rx_buffer_disconnect[6] = (byte)((disconnectDone >> 16) & 0xFF);
  serial_rx_buffer_disconnect[5] = (byte)((disconnectDone >> 24) & 0xFF);
  delay(5000); // Wait 5 seconds before reconnecting
  isConnected = true;
  disconnectDone = currentMillis;
  Serial.begin(baudRate);

  Serial.end();
  isConnected = false;
  disconnectDone = currentMillis;
  delay(2500); // Wait 2.5 seconds before resetting
  resetDone = currentMillis;
  serial_rx_buffer_reset[0] = 0xA1;
  serial_rx_buffer_reset[11] = 0xA1;
