From 74b7bb979e6f19865c14cf3cdf3cba9555eae6eb Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Thu, 19 Dec 2024 10:22:22 +0100 Subject: [PATCH] Modified AF tester to improve audio dropouts --- src/TEF6686.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TEF6686.cpp b/src/TEF6686.cpp index 0991ea3..b5a0504 100644 --- a/src/TEF6686.cpp +++ b/src/TEF6686.cpp @@ -84,13 +84,14 @@ uint16_t TEF6686::TestAF() { for (int x = 0; x < af_counter; x++) { timing = 0; devTEF_Set_Cmd(TEF_FM, Cmd_Tune_To, 7, 3, af[x].frequency); + delay(2); while (timing == 0 && !bitRead(timing, 15)) { devTEF_Radio_Get_Quality_Status(&status, &aflevel, &afusn, &afwam, &afoffset, &dummy1, &dummy2, &dummy3); timing = lowByte(status); } + delay(2); af[x].score = aflevel - afusn - afwam; if (afoffset < -125 || afoffset > 125) af[x].score = -32767; - delay(10); } int16_t highestValue = af[0].score;