void send_rf_data() { rf12_sleep(RF12_WAKEUP); // if ready to send + exit loop if it gets stuck as it seems too int i = 0; while (!rf12_canSend() && i<10) {rf12_recvDone(); i++;} rf12_sendStart(0, &emontx, sizeof emontx); // 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 rf12_sendWait(2); rf12_sleep(RF12_SLEEP); } void emontx_sleep(int seconds) { // if (emontx.battery > 3300) { for (int i=0; i