 #ifdef PRINT_SERIAL
     Serial.print(time);
     Serial.println("ms sleep requested");
-    // Allow time for serial to write the above before powering off
+#endif
+    // Round down to the nearest multiple of 64
+    time &= 0xff80;
+#ifdef PRINT_SERIAL
+    Serial.print("Rounded to ");
+    Serial.println(time);
     delay(100);
 #endif
     // disable RadioHead's interrupts


void sendReport(StationReport *report)
{
    // power on rf xmitter
    digitalWrite(RF_POWER_PIN, HIGH);
    // Give it time to settle
    delay(200);

    // Send 3 times (can't hurt)
    driver.send((uint8_t*)report, sizeof(StationReport));

    driver.waitPacketSent();
    // power off RF
    digitalWrite(RF_POWER_PIN, LOW);
    power_timer1_disable();
}

void loop()
