1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Updates sonar so that it can be used together with ADC current meter

Check if ADC current meter is enabled in sonarInit() and change
sonar pins to pwm 5 and 6 if it is. Same as when RX_PARALLEL is enabled.
This commit is contained in:
Per Magnus Auby 2015-03-31 13:35:45 +02:00
parent 6e8d081c45
commit b83b9040f9
4 changed files with 10 additions and 9 deletions

View file

@ -367,7 +367,7 @@ void init(void)
#ifdef SONAR
if (feature(FEATURE_SONAR)) {
sonarInit();
sonarInit(&masterConfig.batteryConfig);
}
#endif