 ISR(WDT_vect) { Sleepy::watchdogEvent(); }
 
 
-#define DEBUG 1
+#define DEBUG 0
 #define NOOP 0
 
 // DHT22 Power wire is plugged into jeenode DI03 (arduino: digital 6)

  // report
  doReport();

  // max value for loseSomeTime() is 60 seconds
  if (REPORT_PERIOD > 60000) {
#if DEBUG
    Serial.print('FIXME - REPORT_PERIOD > 60000');
    serialFlush();
#endif
    exit(1);
  }

  Sleepy::loseSomeTime(REPORT_PERIOD);
}

// LDR wire is plugged into jeenode AIO04
#define LDR_PORT 4

// how often to report, in minutes
#define REPORT_PERIOD 5

// set the sync mode to 2 if the fuses are still the Arduino default
// mode 3 (full powerdown) can only be used with 258 CK startup fuses
#define RADIO_SYNC_MODE 2

// number of milliseconds to wait for an ack
#define ACK_TIME 10

// how soon to retry if ACK didn't come in
#define ACK_RETRY_PERIOD 10

// maximum number of times to retry
#define ACK_RETRY_LIMIT 5



static byte myNodeID;
