BYTE sendBuffer1[2]; BOOL res; sendBuffer1[0]=v; sendBuffer1[1]=v1; myAddr = ADDRESS_1; remoteAddr = ADDRESS_0; initRfTest(); res=radioSend(sendBuffer1, sizeof(sendBuffer1),remoteAddr, DO_NOT_ACK ); if(res == TRUE) { YLED = LED_ON; } else { YLED = LED_OFF; } myAddr = ADDRESS_0; remoteAddr = ADDRESS_1; initRfTest(); } } EA=TRUE; T1CTL&=~0x10; }
结果发现只能发送一次,然后程序就不执行下去了,练跳到主函数里面都跳不过去,不值是怎么回事啊? |