From 6f8afac8864e0349ecf8b10f91ce8f69273013db Mon Sep 17 00:00:00 2001 From: Dual Tachyon Date: Mon, 30 Oct 2023 12:08:52 +0000 Subject: [PATCH] Fixed name of BK1080 enable flag. --- driver/bk1080.c | 4 ++-- driver/bk1080.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/driver/bk1080.c b/driver/bk1080.c index 8d2e4c5..7a354b5 100644 --- a/driver/bk1080.c +++ b/driver/bk1080.c @@ -38,11 +38,11 @@ static bool gIsInitBK1080; uint16_t BK1080_BaseFrequency; uint16_t BK1080_FrequencyDeviation; -void BK1080_Init(uint16_t Frequency, bool bDoScan) +void BK1080_Init(uint16_t Frequency, bool bEnable) { uint8_t i; - if (bDoScan) { + if (bEnable) { GPIO_ClearBit(&GPIOB->DATA, GPIOB_PIN_BK1080); if (!gIsInitBK1080) { diff --git a/driver/bk1080.h b/driver/bk1080.h index ed1f9c1..f2849bf 100644 --- a/driver/bk1080.h +++ b/driver/bk1080.h @@ -24,7 +24,7 @@ extern uint16_t BK1080_BaseFrequency; extern uint16_t BK1080_FrequencyDeviation; -void BK1080_Init(uint16_t Frequency, bool bDoScan); +void BK1080_Init(uint16_t Frequency, bool bEnable); uint16_t BK1080_ReadRegister(BK1080_Register_t Register); void BK1080_WriteRegister(BK1080_Register_t Register, uint16_t Value); void BK1080_Mute(bool Mute);