1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 12:25:20 +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:
Michael Keller 2018-02-23 20:09:17 +13:00 committed by GitHub
commit db409d6d56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]);
}