1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 14:55:21 +03:00

Afromini Target Beeper override for rev5

This commit is contained in:
borisbstyle 2015-12-09 13:29:14 +01:00
parent 9ec26626b7
commit 0a2444fe39

View file

@ -290,6 +290,10 @@ void init(void)
#endif #endif
}; };
#ifdef NAZE #ifdef NAZE
#ifdef AFROMINI
beeperConfig.gpioMode = Mode_Out_PP; // AFROMINI override
beeperConfig.isInverted = true;
#endif
if (hardwareRevision >= NAZE32_REV5) { if (hardwareRevision >= NAZE32_REV5) {
// naze rev4 and below used opendrain to PNP for buzzer. Rev5 and above use PP to NPN. // naze rev4 and below used opendrain to PNP for buzzer. Rev5 and above use PP to NPN.
beeperConfig.gpioMode = Mode_Out_PP; beeperConfig.gpioMode = Mode_Out_PP;