mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
Changes to sonar for new IO
This commit is contained in:
parent
4bd0b0fb9c
commit
c16d642d66
19 changed files with 150 additions and 113 deletions
|
@ -189,12 +189,11 @@ pwmOutputConfiguration_t *pwmInit(drv_pwm_config_t *init)
|
|||
#endif
|
||||
|
||||
#ifdef SONAR
|
||||
if (init->sonarGPIOConfig &&
|
||||
if (init->sonarConfig &&
|
||||
(
|
||||
CheckGPIOPin(timerHardwarePtr->pin, init->sonarGPIOConfig->gpio, init->sonarGPIOConfig->triggerPin) ||
|
||||
CheckGPIOPin(timerHardwarePtr->pin, init->sonarGPIOConfig->gpio, init->sonarGPIOConfig->echoPin)
|
||||
)
|
||||
) {
|
||||
timerHardwarePtr->pin == init->sonarConfig->triggerPin ||
|
||||
timerHardwarePtr->pin == init->sonarConfig->echoPin
|
||||
)) {
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue