Fix 'fade' may be uninitialised warning in Spektrum RSSI handling.

This commit is contained in:
Dominic Clifton 2018-02-22 20:09:05 +01:00
parent 9d7c8fbd46
commit 4e6965d869
1 changed files with 1 additions and 3 deletions

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