   else if (!strcmp(gamearg, KNOCK_STR)) {
     global_state &= ~STATE_KNOCK;
     digitalWrite(LED2_PIN, 0);
+  }
+
+  if (global_debug) {
+    Serial.print("DEBUG Exited ");
+    Serial.println(gamearg);
   }
 }
 

#include "SerialCommand.h"

// Set to 1 to start in debug mode
#define DEBUG_MODE 0

#define SOLENOID_PIN 4
#define PIEZO_PIN 1

    global_userid = getUserIdArg(userarg);
    // FIXME: Validity check?
  }

  if (global_debug) {
    Serial.print("DEBUG Initialized ");
    Serial.print(gamearg);
    Serial.print(", userid=");
    Serial.println(global_userid);
  }
}

/*!
