Skip to content

Commit

Permalink
Fixed name of BK1080 enable flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dual Tachyon authored and Andrej committed Dec 5, 2023
1 parent d22cbb0 commit 4f986ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions driver/bk1080.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion driver/bk1080.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4f986ac

Please sign in to comment.