mBed RFM12B module library
Fork of RF12B by
RFM12B Library
The main purpose of this library was to implement the RFM12B module in order to be able to establish communication with the Moteino (arduino clone that uses the RFM12B).
In order to achieve my goal I was highly inspired by RF12B library from pangsk https://mbed.org/users/pangsk/ and by RFM12B arduino library made by Felix Rusu (http://lowpowerlab.com/blog/2012/12/28/rfm12b-arduino-library/)
Who/What is Moteino? (http://lowpowerlab.com/moteino/)
Diff: RF12B.cpp
- Revision:
- 1:27a1606deace
- Parent:
- 0:66fdbf2cc578
- Child:
- 2:cfeb4c9cdbe3
diff -r 66fdbf2cc578 -r 27a1606deace RF12B.cpp --- a/RF12B.cpp Sun Jan 01 21:54:11 2012 +0000 +++ b/RF12B.cpp Sun Jan 01 22:09:41 2012 +0000 @@ -9,7 +9,6 @@ #include "RF12B.h" -#include "RF_defs.h" // RF12 command codes #define RF_RECEIVER_ON 0x82DD #define RF_XMITTER_ON 0x823D @@ -215,8 +214,7 @@ uint8_t RF12B::rf12_recvDone (void) { - int i; - if (rxstate == TXRECV && (rxfill >= rf12_len + 5 || rxfill >= RF_MAX)) { + if (rxstate == TXRECV && (rxfill >= rf12_len + 5 || rxfill >= RF_MAX)) { rxstate = TXIDLE; if (rf12_len > RF12_MAXDATA)