mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +03:00
Merge pull request #5282 from betaflight/cf-changes-7
Fix 'fade' may be uninitialised warning in Spektrum RSSI handling.
This commit is contained in:
commit
db409d6d56
1 changed files with 1 additions and 3 deletions
|
@ -162,9 +162,7 @@ void spektrumHandleRSSI(volatile uint8_t spekFrame[]) {
|
|||
(system == SPEKTRUM_DSMX_11) ) ){
|
||||
spektrumSatInternal =false; // Nope, this is an externally bound Sat Rx
|
||||
}
|
||||
}
|
||||
|
||||
if (!spektrumSatInternal) {
|
||||
} else {
|
||||
// External Rx, bind values 4, 6, 8, 10
|
||||
fade = ((spekFrame[0] << 8) + spekFrame[1]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue