Merge pull request #523 from mikeller/fix_naze_beeper

Fixed beeper for NAZE32 >= rev5.
This commit is contained in:
J Blackman 2016-06-19 22:02:58 +10:00 committed by GitHub
commit af375d9b06
3 changed files with 2 additions and 3 deletions

View File

@ -357,7 +357,7 @@ void init(void)
#ifdef NAZE
if (hardwareRevision >= NAZE32_REV5) {
// naze rev4 and below used opendrain to PNP for buzzer. Rev5 and above use PP to NPN.
beeperConfig.isOD = true;
beeperConfig.isOD = false;
beeperConfig.isInverted = true;
}
#endif

View File

@ -197,4 +197,3 @@
#define TARGET_IO_PORTC ( BIT(13) | BIT(14) | BIT(15) )
#define USED_TIMERS ( TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(4) )