![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
rfm22 receive code for BAE
Diff: main.cpp
- Revision:
- 1:0aa0c0b64f0c
- Parent:
- 0:7031cc82d88a
diff -r 7031cc82d88a -r 0aa0c0b64f0c main.cpp --- a/main.cpp Fri Dec 26 10:34:54 2014 +0000 +++ b/main.cpp Fri Dec 26 11:01:43 2014 +0000 @@ -138,7 +138,7 @@ init(); //init complete - pc.printf("init complete.....press r to receive\n"); + pc.printf("init complete....\n"); //******** @@ -152,8 +152,8 @@ clearRxBuf(); //setModeRx(); writereg(RF22_REG_07_OPERATING_MODE1,0x04);//rxon - while((readreg(RF22_REG_04_INTERRUPT_STATUS2)& 0x10) != 0x10) - pc.printf("rssi?\n"); + while((readreg(RF22_REG_04_INTERRUPT_STATUS2)& 0x10) != 0x10) ; + //pc.printf("rssi?\n"); //preamble?? while(!(readreg(0x04)&0x40)) pc.printf("detecting preamble\n");