Still need to figure out why it's broken by transmission.
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@800
12e2690d-a6be-4b82-a7b7-
67c4a43b65c8
while(MARCSTATE==MARC_STATE_RX && !RFTXRXIF); //Wait for byte to be ready.
RFTXRXIF=0; //Clear the flag.
- HALT;
+ return;
packet[i++]=RFD; //Grab the next byte.
}
//while(MARCSTATE!=MARC_STATE_IDLE);
while(1){
-
+ sleepMillis(5);
rxwait();
//idle a bit.
//SYNC0=0xAA;
//Transmit carrier for 10ms
- /*
- RFST=RFST_STX;
- while(MARCSTATE!=MARC_STATE_TX);
- sleepMillis(20);
- */
-
- RFON;
-
- sleepMillis(200);
- RFOFF;
+ carrier();
+ //RFON;
+ HALT;
}
}