   note("armed");
 }
 void updateArmedState() {
-  if (digitalRead(ARMING_SWITCH) == LOW) {
+  armedStatus();
+  digitalWrite(ARMED_LED, HIGH);  
+  if (!armed) {
     stateMachine.transitionTo(readyState);
   }
-  digitalWrite(ARMED_LED, HIGH);
 }
 void leaveArmedState() {
+  note("disarmed");
   digitalWrite(ARMED_LED, LOW);
 }
 


// Logging and debug controls
#define DEBUG true

// Pins configs for the buttons and switches
const byte ARMING_SWITCH = 8;

  note("fired!");
  digitalWrite(FIRING_LED, LOW);
  clearTimer(timerFiringState);
}

// Switch state helpers
void armedStatus() {
  if (digitalRead(ARMING_SWITCH) == LOW) {
    armed = false;
  } else {
    armed = true; 
  }
}

// Timing helpers
