diff --git a/src/main/target/NAZE/config.c b/src/main/target/NAZE/config.c index d2fbce409e..9fdbca437c 100755 --- a/src/main/target/NAZE/config.c +++ b/src/main/target/NAZE/config.c @@ -80,6 +80,7 @@ void targetConfiguration(master_t *config) } #endif +#if !defined(AFROMINI) && !defined(BEEBRAIN) if (hardwareRevision >= NAZE32_REV5) { // naze rev4 and below used opendrain to PNP for buzzer. Rev5 and above use PP to NPN. config->beeperConfig.isOpenDrain = false; @@ -88,5 +89,8 @@ void targetConfiguration(master_t *config) config->beeperConfig.isOpenDrain = true; config->beeperConfig.isInverted = false; } +#else + UNUSED(config); +#endif } diff --git a/src/main/target/NAZE/target.h b/src/main/target/NAZE/target.h index 4eed345152..82bc69ba70 100644 --- a/src/main/target/NAZE/target.h +++ b/src/main/target/NAZE/target.h @@ -37,6 +37,7 @@ #define DEFAULT_FEATURES FEATURE_MOTOR_STOP #else #define TARGET_BOARD_IDENTIFIER "AFNA" +// Beeper configuration is handled in 'config.c', since it is dependent on hardware revision #endif //#define BARO_XCLR_PIN PC13