mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-10 04:51:52 +00:00
Make FM squelch runtime-configurable.
This commit is contained in:
@@ -43,3 +43,7 @@ bool FMSquelch::execute(buffer_s16_t audio) {
|
||||
|
||||
return (max_squared < threshold_squared);
|
||||
}
|
||||
|
||||
void FMSquelch::set_threshold(const uint32_t new_value) {
|
||||
threshold_squared = new_value * new_value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user