From 0a2444fe398b86270a1f11e592ffe3b97ffd9dc3 Mon Sep 17 00:00:00 2001 From: borisbstyle Date: Wed, 9 Dec 2015 13:29:14 +0100 Subject: [PATCH] Afromini Target Beeper override for rev5 --- src/main/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/main.c b/src/main/main.c index e1381c5930..f888a7c1d8 100644 --- a/src/main/main.c +++ b/src/main/main.c @@ -290,6 +290,10 @@ void init(void) #endif }; #ifdef NAZE +#ifdef AFROMINI + beeperConfig.gpioMode = Mode_Out_PP; // AFROMINI override + beeperConfig.isInverted = true; +#endif if (hardwareRevision >= NAZE32_REV5) { // naze rev4 and below used opendrain to PNP for buzzer. Rev5 and above use PP to NPN. beeperConfig.gpioMode = Mode_Out_PP;