Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
- }
Advertisement
Add Comment
Please, Sign In to add comment