 
 void setup() {
   Serial.begin(9600);
-  Serial.println("setup");
+  log("setup");
 
   initInputPins();
   initOutputPins();


#include "Switch.h"
#include "SimpleTimer.h"

// pin definitions
#define pinOpenBtnOut       2

#define modeManualClose 4
#define modeHalt 5

unsigned long ms, motorStartTime, manualModeLastMoveTime;
bool outputRequired = false;
bool manualModeLocked = false;
bool openTimeComplete = false;
