 static byte reportCount;    // count up until next report, i.e. packet send
 
 struct SensorData {
-  byte light;           // light sensor: 0..255
-  byte openDoor :1;     // door sensor: 0..1
-  int tempInside :10;   // temperature: -500..+500 (tenths)
-  int tempOutside :10;  // temperature: -500..+500 (tenths)
+  byte light;            // light sensor: 0..255
+  byte door :1;      // door sensor: 0..1
+  int tempIn :10;    // temperature: -500..+500 (tenths)
+  int tempOut :10;   // temperature: -500..+500 (tenths)
 };
 
 // dallas onewire configuration


// container for sensor data
SensorData sensorData;

// has to be defined because we're using the watchdog for low-power waiting
ISR(WDT_vect) { Sleepy::watchdogEvent(); }

#define REPORT_EVERY    2   // report every N measurement cycles
#define SMOOTH          3   // smoothing factor used for running averages

#define NODEID          2       // node ID used for this unit
#define NETWORKID       99
#define GATEWAYID       1
#define FREQUENCY       RF12_915MHZ

#define BUFFER_SIZE     128

// 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

enum { MEASURE, REPORT, TASK_END };

//static word schedbuf[TASK_END];
