frequency analyzer multiple fixes

fix scenes crash, fix button logic
fix wrong calls to int module
make worker more OFW like, remove ext module unused code
This commit is contained in:
MX
2024-09-29 04:05:09 +03:00
parent 50ae431a48
commit bdb402b068
3 changed files with 50 additions and 89 deletions

View File

@@ -254,7 +254,9 @@ bool subghz_frequency_analyzer_input(InputEvent* event, void* context) {
instance->selected_index = (instance->selected_index + 1) % instance->max_index;
need_redraw = true;
}
} else if(event->key == InputKeyOk) {
} else if(
(event->type != InputTypeRelease && event->type != InputTypeRepeat) &&
event->key == InputKeyOk) {
need_redraw = true;
bool updated = false;
uint32_t frequency_to_save;
@@ -454,7 +456,7 @@ void subghz_frequency_analyzer_enter(void* context) {
(SubGhzFrequencyAnalyzerWorkerPairCallback)subghz_frequency_analyzer_pair_callback,
instance);
subghz_frequency_analyzer_worker_start(instance->worker, instance->txrx);
subghz_frequency_analyzer_worker_start(instance->worker);
instance->rssi_last = 0;
instance->selected_index = 0;