From 09b5adece4274ac827d80eeb86b08929e3638784 Mon Sep 17 00:00:00 2001 From: Bruce Luckcuck Date: Fri, 22 Feb 2019 16:54:41 -0500 Subject: [PATCH] Fix compile warnings when USE_BEEPER is not defined If USE_BEEPER is undefined but the BEEPER_PIN or BEEPER_PWM_HZ are defined then there was a compile warning becasue they get redefined in beeper.c. --- src/main/target/common_post.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/target/common_post.h b/src/main/target/common_post.h index ad3560c78..c9fdaf3bd 100644 --- a/src/main/target/common_post.h +++ b/src/main/target/common_post.h @@ -267,3 +267,8 @@ #undef USE_GPS_RESCUE #undef USE_ACRO_TRAINER #endif + +#ifndef USE_BEEPER +#undef BEEPER_PIN +#undef BEEPER_PWM_HZ +#endif