mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 08:07:37 +00:00
Fixed CTCSS tone detection (#1226)
* Fixed erroneous rounding code * Fixed CTCSS tone detection * Correct tone index for XZ/WZ and sort table by tone freq
This commit is contained in:
@@ -72,7 +72,7 @@ void NarrowbandFMAudio::execute(const buffer_c8_t& buffer) {
|
||||
cur_sample = audio_f[c];
|
||||
if (cur_sample * prev_sample < 0.0) {
|
||||
z_acc += z_timer;
|
||||
z_timer = 0;
|
||||
z_timer = 1;
|
||||
z_count++;
|
||||
} else
|
||||
z_timer++;
|
||||
|
Reference in New Issue
Block a user