             maxm2.stop();
 
             doFlash(ledPort, led1, 2);
+#ifdef DEBUG_TRACE
+            Serial.println("MAXM2");
+            Serial.flush();
+#endif
             break;
 
         // Check if within operational time

    maxm2.write(0);
    maxm2.stop();

    // Start tasks after a pause for the power supply to settle
    scheduler.timer(OPER_TIME, 15);
    scheduler.timer(MAXM1, 20);
}

void loop () {
    switch (scheduler.pollWaiting()) {
        // Control first MaxM
        case MAXM1:
#ifdef DEBUG_TRACE
            Serial.print("MAXM1 operational: ");
            Serial.println(is_operational);
            Serial.flush();
#endif
            if (is_operational == 1) {
                doFlash(ledPort, led1, 1);
#ifdef DEBUG_TRACE
                Serial.println("MAXM1");

const byte maxm2Dev = 13;

// Start and end hours of operation
const unsigned char start_hh = 18;
const unsigned char start_mm = 39;
const unsigned char stop_hh = 18;
const unsigned char stop_mm = 40;

// Length of first MaxM light cycle in seconds
// The light scripts on the MaxMs MUST be
// shorter than this value.
// const byte maxm1_cycle = 90;
const byte maxm1_cycle = 30;

// Seconds after starting first MaxM to start second
// const byte maxm2_offset = 30;
const byte maxm2_offset = 15;

// Length of time check cycle in seconds
// const byte check_cycle = 60;
const byte check_cycle = 15;

// Somewhere I got the idea there was a pause needed
// at the end of the setup() function. Set it to 
// 2 seconds.
const byte startup_pause = 20;

// LEDs
const byte led1 = 1;
