 /** Timer Functions */
 
 void updateTimers() {
-  manualModeLocked = (ms - manualModeReleaseTime < manualModeLockTime);
+  manualModeLocked = (ms - manualModeLastMoveTime < manualModeLockTime);
   openTimeComplete = (ms - motorStartTime > openTime);
   closeTimeComplete = (ms - motorStartTime > closeTime);
 }


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

// pin definitions
#define pinOpenBtnOut       2


void setup() {
  Serial.begin(9600);
  log("setup");

  initInputPins();
  initOutputPins();
