 
         // check relays
         unsigned long t = millis();
-        if (drogueDeployStart > 0 && (drogueDeployStart + PYRO_ON_TIME) < t)
-        {
-            digitalWrite(PYRO_2_PIN, LOW);
-            drogueDeployStart = 0;
-        }
-        if (mainDeployStart > 0 && (mainDeployStart + PYRO_ON_TIME) < t)
-        {
-            digitalWrite(PYRO_1_PIN, LOW);
-            mainDeployStart = 0;
+        for(int i = 0; i < NUM_EVENTS; i++)
+        {
+            if (eventStart[i] > 0 && (eventStart[i] + PYRO_ON_TIME) < t)
+            {
+                stopEvent(i+1);
+            }
         }
 
         // toggle LED

    }
}

/**
* Test the analog continuity lines for voltage.
*/

float latitude = 0.0F;
float longitude = 0.0F;

static uint8_t gpsBufferLoc = 0;
static char gpsBuffer[GPS_BUFFER_SIZE];
static uint8_t cmdBufferLoc = 0;
static char cmdBuffer[COMMAND_BUFFER_SIZE];

static String printBuffer;

