  * bus on port 2, and optionally there are 2 status LEDs on port 4
  * being independently controlled with the DIO and AIO pins. LED1
  * flashes once for the MAXM1 task, twice for the MAXM2 task to show
- * the correct task ran; LED2 flashes once per minute to show the
- * sketch is working.
+ * the correct task ran; LED2 flashes twice per minute when the
+ * lights are awake and once per minute when they are asleep.
  */
 
 // Uncomment for LEDs flashing for debug

            Serial.println(now.second());
            Serial.flush();
#endif
            // Check if should be operational and set flag 
            is_operational = checkAwake(now, wps, num_wps);
            if (is_operational == 1) {
                // Start the MAXM1 task if not already active
                if (maxm1_active == 0) {
                  scheduler.timer(MAXM1, 0);
                  maxm1_active = 1;
                }
#ifdef DEBUG_TRACE
                Serial.println("Lights are operational");
                Serial.flush();
#endif
            } else {
                maxm1_active = 0;
                //TODO consider turning off MaxMs like in setup()
#ifdef DEBUG_TRACE
                Serial.println("Lights are sleeping");
                Serial.flush();
#endif
            }

            // Flash LED2 one for every minute
            doFlash(ledPort, led2, 1);
            break;
    }
}

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

#ifdef DEBUG_TRACE
            Serial.println("MAXM2");
            Serial.flush();
#endif
            break;

        // Check if awake or asleep
        case CHK_TIME:
            // Get time
            DateTime now = RTC.now();

            // Check every check_cycle seconds
            int sec_til_check = check_cycle - (now.get() % check_cycle);
            // TODO if sec_til_check is shorter than the check cycle by
            // more than a couple seconds, then reschedule and break so
            // the lights start their cycle with the CHK_TIME cycle.
            scheduler.timer(CHK_TIME, sec_til_check * 10);

#ifdef DEBUG_TRACE
            Serial.print("RTC time: ");
