 
   if (swTrigger == LOW || (swFront == LOW && swBack == LOW)) {
     doorState = doorError;
-    Serial.print(F("ERROR\n"));
+    Serial.print(F("ERROR\r\n"));
   } else if (swFront == LOW) {
     doorState = doorClosed;
-    Serial.print(F("closed\n"));
+    Serial.print(F("closed\r\n"));
   } else if (swBack == LOW) {
     doorState = doorOpen;
-    Serial.print(F("open\n"));
+    Serial.print(F("open\r\n"));
   } else {
     doorState = doorBlocked;
-    Serial.print(F("blocked\n"));
+    Serial.print(F("blocked\r\n"));
   }
 
   if (doorState != doorError) {


void setup() {
  Serial.begin(115200);
  Serial.print(F("\nDoor control init\n"));

  // disable driver bridges until setup complete
  motorDisable();

    case doorError:
      // wait for reset by qualified service technician
      // TODO: make it user-resettable
// wait until driver cools down
// TODO: this won't work now because motorDisable() pulls the pins low
if (motorDiagA == HIGH && motorDiagB == HIGH) {
  setLeds1(red, ledSolid);
  doorState = doorBlocked;
digitalWrite(13, LOW);
}
digitalWrite(13, HIGH);
      break;
  }
