diff --git a/am_fix.c b/am_fix.c index ab7e7e8..78da06f 100644 --- a/am_fix.c +++ b/am_fix.c @@ -362,15 +362,20 @@ const uint8_t orig_pga = 6; // -3dB } // sample the current RSSI level, average it with the previous rssi +#if 0 if (rssi[vfo].count < 1) { rssi[vfo].level = BK4819_GetRSSI(); rssi[vfo].count++; } else - { + { // average of new and old RSSI's rssi[vfo].level = (rssi[vfo].level + BK4819_GetRSSI()) >> 1; } +#else + // no averaging with previous RSSI's + rssi[vfo].level = BK4819_GetRSSI(); +#endif #ifdef ENABLE_AM_FIX_TEST1 diff --git a/firmware.bin b/firmware.bin index e7621d0..7ac405a 100644 Binary files a/firmware.bin and b/firmware.bin differ diff --git a/firmware.packed.bin b/firmware.packed.bin index bfa9a1d..023ec53 100644 Binary files a/firmware.packed.bin and b/firmware.packed.bin differ