Skip to content

Commit 98d4219

Browse files
authored
Merge pull request ExpressLRS#3447 from CapnBry/handset-disconn-lq0
Set LQ=0 when handset disconnects
2 parents 9e0b767 + 8a3cff4 commit 98d4219

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/src/tx_main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,8 @@ static void UARTdisconnected()
717717
{
718718
hwTimer::stop();
719719
setConnectionState(noCrossfire);
720+
// Since not going from connected -> disconnected, set LQ=0 to make sure the handset knows we stopped TXing when it comes back
721+
linkStats.uplink_Link_quality = 0;
720722
}
721723

722724
static void UARTconnected()

0 commit comments

Comments
 (0)