From 53cefb9d1449fd1a053b1c6790749962aacac670 Mon Sep 17 00:00:00 2001 From: blckmn Date: Sun, 31 Jul 2016 15:39:26 +1000 Subject: [PATCH] Fixed beeper on BJF4 rev3 --- src/main/main.c | 6 ++++++ src/main/target/BLUEJAYF4/target.h | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/main.c b/src/main/main.c index 7be831d73c..79e415c1c2 100644 --- a/src/main/main.c +++ b/src/main/main.c @@ -362,6 +362,12 @@ void init(void) beeperConfig.isInverted = true; } #endif +/* temp until PGs are implemented. */ +#ifdef BLUEJAYF4 + if (hardwareRevision <= BJF4_REV2) { + beeperConfig.ioTag = IO_TAG(BEEPER_OPT); + } +#endif #ifdef CC3D if (masterConfig.use_buzzer_p6 == 1) beeperConfig.ioTag = IO_TAG(BEEPER_OPT); diff --git a/src/main/target/BLUEJAYF4/target.h b/src/main/target/BLUEJAYF4/target.h index 39cc723a64..73f7f86c99 100644 --- a/src/main/target/BLUEJAYF4/target.h +++ b/src/main/target/BLUEJAYF4/target.h @@ -33,7 +33,8 @@ #define LED1 PB5 #define LED2 PB4 -#define BEEPER PB7 +#define BEEPER PC1 +#define BEEPER_OPT PB7 #define BEEPER_INVERTED #define INVERTER PB15