 unsigned long ledMillis = 0;
 
 bool swFront, swBack, swTrigger, motorDiagA, motorDiagB; // debounced inputs
+bool swFrontDeglitch, swBackDeglitch, swTriggerDeglitch, motorDiagADeglitch, motorDiagBDeglitch; // TODO: quick hack. document
 uint16_t swFrontDebounce, swBackDebounce, swTriggerDebounce, motorDiagADebounce, motorDiagBDebounce; // debounce shift registers
 
 

        debug(currentMillis, F("Button switch triggered - door blocked\r\n"));
        setLeds1(red, ledSolid);
        doorState = doorBlocked;
swTrigger = HIGH;
        break;
      }


  if (debounceMillis >= debounceInterval) {
    debounceMillis = 0;

    debounce(switchTrigger, &swTrigger, &swTriggerDeglitch, &swTriggerDebounce);
    debounce(switchFront, &swFront, &swFrontDeglitch, &swFrontDebounce);
    debounce(switchBack, &swBack, &swBackDeglitch, &swBackDebounce);
  }


