             // Check if should be operational and set flag
             long cur_min = toMin(now.hour(), now.minute());
             if ((cur_min >= start_min) && (cur_min < stop_min))  {
-                /* Serial.println("Operational"); */
-                /* Serial.flush(); */
+#ifdef DEBUG_TRACE
+                Serial.println("Operational");
+                Serial.flush();
+#endif
                 is_operational = 1;
-                /* Serial.print("is operational "); */
-                /* Serial.println(is_operational); */
-                /* Serial.flush(); */
+#ifdef DEBUG_TRACE
+                Serial.print("is operational ");
+                Serial.println(is_operational);
+                Serial.flush();
+#endif
             } else {
-                /* Serial.println("Sleep"); */
-                /* Serial.flush(); */
+#ifdef DEBUG_TRACE
+                Serial.println("Sleep");
+                Serial.flush();
+#endif
                 is_operational = 0;
             }
 
-#ifdef DEBUG
+#ifdef DEBUG_FLASH
             // Flash LED2 one for every minute in ten if "operational"
             // otherwise only 1 flash
             int num_flash = 1;


// boilerplate for low-power waiting
ISR(WDT_vect) { Sleepy::watchdogEvent(); }

// The MaxMs are daisy chained off Jeenode port 2
Port maxms (2);

// RTC based on the DS1307 chip connected via the Ports library
class RTC_Plug : public DeviceI2C {

    return (hh * 60) + mm;
}

#ifdef DEBUG_FLASH
void doFlash(const Port ldnum, const byte cnt) {
    byte cntr = cnt;
    while (cntr > 0) {
