 long timerStartupState = 0;
 long timerFiringState = 0;
 
-// Status of the ARMED switch
-boolean armed = false;
-
 // FSM states
 State startupState = State(enterStartupState,updateStartupState,leaveStartupState);
 State readyState = State(enterReadyState,updateReadyState,leaveReadyState);


void setup() {
  pinMode(TRIGGER_BUTTON, INPUT_PULLUP);
  pinMode(ARMING_SWITCH, INPUT_PULLUP);
  pinMode(ARMED_LED, OUTPUT);
  pinMode(FIRING_LED, OUTPUT);
  
  attachInterrupt(1,fireEvent,HIGH);

  startLog();
}


  note("armed");
}
void updateArmedState() {
  if (digitalRead(ARMING_SWITCH) == LOW) {
    stateMachine.transitionTo(readyState);
  }
  digitalWrite(ARMED_LED, HIGH);
