X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=shellcode%2Fchipcon%2Fcc1110%2Ftxpacket.c;h=fa0ad986ac9c95b65601253bd3faaaea7e82066f;hp=333e3d773a6c0b40d89e0f4cc0cc07d2f7405311;hb=3c9dd526729e4296e7ac231840a445de182c8734;hpb=a06f45d24b010987c9128261ff33dd2c93db0970;ds=sidebyside diff --git a/shellcode/chipcon/cc1110/txpacket.c b/shellcode/chipcon/cc1110/txpacket.c index 333e3d7..fa0ad98 100644 --- a/shellcode/chipcon/cc1110/txpacket.c +++ b/shellcode/chipcon/cc1110/txpacket.c @@ -8,7 +8,7 @@ void main(){ unsigned char len=packet[0], i=0; RFST=RFST_STX; //Begin transmit. while(i!=len+1){ - while(RFTXRXIF); //Wait for byte to be ready. + while(!RFTXRXIF); //Wait for byte to be ready. RFTXRXIF=0; //Clear the flag. RFD=packet[i++]; //Send the next byte.