 #include <EEPROM.h>
 #include "data.h"
 
-#define BAUD_RATE 115200
+#include "Settings.h"
+
+#define BAUD_RATE 57200
+#define bufferSize 600
+#define debug false
 
 /* ============= CHANGE WIFI CREDENTIALS ============= */
 const char *ssid = "WiFi Duck";

void loop() {
  if(shouldReboot) ESP.restart();
  
  if(Serial.available() > 0) {
    byte answer = Serial.read();
    if(answer == 0x99) {
      //Serial.println("REM done");
      runLine = true;
    }
  }

  if(runScript && runLine){
    if(script.available()){
      uint8_t nextChar = script.read();
      //Serial.write(nextChar);
      scriptLineBuffer[lc] = nextChar;
      lc++;
      if(nextChar == 0x0D || lc == bufferSize) addToBuffer();

    }
    if(final){
      if(Update.end(true)){
		if(debug) Serial.printf("Update Success: %uB\n", index+len);
      } else {
		if(debug) Update.printError(Serial);
      }
    }
  });
  
  server.begin();
  
  if(debug) Serial.println("started");
}

void sendBuffer(){
