This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LQI值不會改變?

想提取LQI值判斷距離
afIncomingMSGPacket_t *pkt;
uint8 msgLqi = pkt->LinkQuality;

輸入以上程式後能動作,但LQI值似乎固定不變,改變距離但LED動作不變

warning  : variable "pkt" is used before its value is set

想請問是不是因為這句話寫的問題,如果是想請問該怎麼解決?