     max1464.begin();
 }
 
+void clearInputString() {
+    inputString = "";
+    stringComplete = false;
+}
+
 void serialEvent() {
     while (Serial.available()) {
         char inChar = (char)Serial.read();


void loop() {
    if (stringComplete) {
        inputString.toUpperCase();
        inputString = strtok((char *)inputString.c_str(), " ");
        if(writingToFlash) {
            if(String("!ABORTWRITEFLASHMEMORY!").equals(inputString)) {
                writingToFlash = false;

                    Serial.println();
                }
            }
            clearInputString();
            return;
        }

        inputString.toUpperCase();
        inputString = strtok((char *)inputString.c_str(), " ");

        if(String("IDEN").startsWith(inputString)) {
            printIden();
        }
        else if(String("RFW").startsWith(inputString)) {
