1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Merge pull request #7960 from mikeller/fix_gyro_detection_2

Fixed gyro detection some more.
This commit is contained in:
Michael Keller 2019-04-11 15:59:14 +12:00 committed by GitHub
commit f16054624e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -243,13 +243,16 @@ static bool detectSPISensorsAndUpdateDetectionResult(gyroDev_t *gyro, const gyro
sensor = (gyroSpiDetectFnTable[index])(&gyro->bus);
if (sensor != MPU_NONE) {
gyro->mpuDetectionResult.sensor = sensor;
return true;
}
}
// Detection failed, disable CS pin again
spiPreinitByTag(config->csnTag);
return true;
return false;
}
#endif