 
     if(record) {
         bufferMeasurements(plug, measurements);
-        if(scheduler.idle(TASK_REPORT))
-            scheduler.timer(TASK_REPORT, 1);
     }
     return 0;
 }


    rf12_config(0);         // Setup RF
    rf12_sleep(RF12_SLEEP); // and power down

    scheduler.timer(TASK_ANNOUNCE, 0);    // start the announcements
}

// Lame floating point format, only powers of ten = mant*10^exp
// 4 bits mantissa (0..15), 4 bits exponent (-8..7)
#define SCALE(mant,exp) (((exp&0xF) << 4) | (mant&0xF))

static int scale_as_int(byte scale)
{
    int n = scale & 0xF;
    int e = scale >> 4;
    while(e > 0) {
        n *= 10;
        e--;
    }
    return n;
}

enum { UNIT_HUMIDITY, UNIT_TEMP, UNIT_VOLT, UNIT_OHM, UNIT_SCALAR, UNIT_TESLA, UNIT_PASCAL };

