mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-08 17:55:00 -04:00
Added back frequency display for CTCSS
Attempted to fix replay, just fixed StreamBuffer read() and added waterfall display... Updated binary
This commit is contained in:
parent
d77337dd77
commit
3221992ad1
18 changed files with 133 additions and 54 deletions
|
@ -333,12 +333,11 @@ void AnalogAudioView::squelched() {
|
|||
}
|
||||
|
||||
void AnalogAudioView::handle_coded_squelch(const uint32_t value) {
|
||||
//const std::string value_string = to_string_dec_uint(value / 10) + "." + to_string_dec_uint(value % 10);
|
||||
float diff, min_diff = value;
|
||||
size_t min_idx { 0 };
|
||||
size_t c;
|
||||
|
||||
for (c = 0; c < KEY_TONES_NB; c++) {
|
||||
for (c = 0; c < tone_keys.size(); c++) {
|
||||
diff = abs(((float)value / 100.0) - tone_keys[c].second);
|
||||
if (diff < min_diff) {
|
||||
min_idx = c;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue