Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into fix-DualTacheonDCSFix
Browse files Browse the repository at this point in the history
  • Loading branch information
xawen committed Mar 11, 2024
2 parents a7ab13c + ec8e053 commit 76b85f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions radio/detector.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,11 @@ static void MuteCtcssScan(void)
}

// Double check the assembly, it didn't make sense!
Code = (Code & 0xFFF) << 16;
Code = (Code & 0xFFF) << 12;
Code |= BK4819_ReadRegister(0x6A) & 0xFFF;
gVfoState[gSettings.CurrentVfo].Golay = Code;

if ((Code & 0XFFFFFF) != 0x555555 && (Code & 0xFFFFFF) != 0xAAAAAA) {
if ((Code & 0xFFFFFF) != 0x555555 && (Code & 0xFFFFFF) != 0xAAAAAA) {
if (Code != 0x800000 && (Code & 0xFFFFFF) != 0xFFFFFF && (Code & 0xFFFFFF) != 0x7FFFFF) {
if (!gVfoState[gSettings.CurrentVfo].bIs24Bit) {
Code &= 0x7FFFFF;
Expand All @@ -213,7 +213,7 @@ static void MuteCtcssScan(void)
VFO_ClearMute();
Code = BK4819_ReadRegister(0x68);
if ((Code & 0x8000U) == 0) {
Code = (((Code & 0xFFFU) * 200U) / 412U) + 1U;
Code = (((Code & 0x1FFFU) * 200U) / 413U) + 1U;
if (Code > 500) {
Code &= 0xFFFU;
gVfoState[gSettings.CurrentVfo].RX.Code = Code;
Expand Down

0 comments on commit 76b85f3

Please sign in to comment.