mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 06:45:16 +03:00
Tidied up sonar targets
This commit is contained in:
parent
23e2fd55c2
commit
3ca385d92e
13 changed files with 57 additions and 132 deletions
|
@ -189,10 +189,10 @@ pwmOutputConfiguration_t *pwmInit(drv_pwm_config_t *init)
|
|||
#endif
|
||||
|
||||
#ifdef SONAR
|
||||
if (init->sonarConfig &&
|
||||
if (init->useSonar &&
|
||||
(
|
||||
timerHardwarePtr->tag == init->sonarConfig->triggerTag ||
|
||||
timerHardwarePtr->tag == init->sonarConfig->echoTag
|
||||
timerHardwarePtr->tag == init->sonarConfig.triggerTag ||
|
||||
timerHardwarePtr->tag == init->sonarConfig.echoTag
|
||||
)) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue