mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
change lqi sign
This commit is contained in:
parent
4e3b21ede1
commit
90e1117794
1 changed files with 2 additions and 2 deletions
|
@ -196,9 +196,9 @@ static bool tuneRx(uint8_t *packet)
|
||||||
if (packet[ccLen - 1] & 0x80) {
|
if (packet[ccLen - 1] & 0x80) {
|
||||||
if (packet[2] == 0x01) {
|
if (packet[2] == 0x01) {
|
||||||
uint8_t Lqi = packet[ccLen - 1] & 0x7F;
|
uint8_t Lqi = packet[ccLen - 1] & 0x7F;
|
||||||
if (Lqi < 50) {
|
// higher lqi represent better link quality
|
||||||
|
if (Lqi > 50) {
|
||||||
rxFrSkySpiConfigMutable()->bindOffset = bindOffset;
|
rxFrSkySpiConfigMutable()->bindOffset = bindOffset;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue