   debug(currentMillis, F("Elapsed millis: "));
   Serial.println(elapsedMillis);
 */
-
 
   // fast debounce driver error signals to filter short glitches
   debounce(motorDiagAPin, &motorDiagA, &motorDiagADeglitch, &motorDiagADebounce);

union ledState {
  unsigned int ledidx;
  signed int fader;
  bool blink_on;
} ledState;

// pre-defined colors. GRB order, g++ doesn't implement out-of-order initializers


void motorFree() {
  _motorFree();
  Serial.print(F("Brake released\r\n"));
}

void _motorFree() {
