mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-07 22:22:21 -04:00
Recon capture mod (#1190)
* Recon: disabling config while recording * Capture and Spectre Painter: using freqman set bandwidth option instead of static define * Recon: light_grey for disable so we can still see the text
This commit is contained in:
parent
407fee23b9
commit
996ccb0e40
5 changed files with 10 additions and 19 deletions
|
@ -42,6 +42,7 @@ void ReconView::recon_stop_recording() {
|
|||
if (is_recording) {
|
||||
button_audio_app.set_style(&Styles::white);
|
||||
record_view->stop();
|
||||
button_config.set_style(&Styles::white); // disable config while recording as it's causing an IO error pop up at exit
|
||||
is_recording = false;
|
||||
}
|
||||
}
|
||||
|
@ -820,6 +821,8 @@ ReconView::ReconView(NavigationView& nav)
|
|||
};
|
||||
|
||||
button_config.on_select = [this, &nav](Button&) {
|
||||
if (is_recording) // disabling config while recording
|
||||
return;
|
||||
clear_freqlist_for_ui_action();
|
||||
freq_lock = 0;
|
||||
timer = 0;
|
||||
|
@ -1090,6 +1093,7 @@ void ReconView::on_statistics_update(const ChannelStatistics& statistics) {
|
|||
if (auto_record_locked && !is_recording) {
|
||||
button_audio_app.set_style(&Styles::red);
|
||||
record_view->start();
|
||||
button_config.set_style(&Styles::light_grey); // disable config while recording as it's causing an IO error pop up at exit
|
||||
is_recording = true;
|
||||
}
|
||||
// FREQ IS STRONG: GREEN and recon will pause when on_statistics_update()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue