mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-01 19:16:29 -04:00
Add second tick handler for CaptureThread.
This commit is contained in:
parent
8188b44439
commit
11d15ec5b5
2 changed files with 15 additions and 0 deletions
|
@ -25,6 +25,7 @@
|
|||
using namespace portapack;
|
||||
|
||||
#include "file.hpp"
|
||||
#include "time.hpp"
|
||||
|
||||
#include "utility.hpp"
|
||||
|
||||
|
@ -77,9 +78,14 @@ CaptureAppView::CaptureAppView(NavigationView& nav) {
|
|||
});
|
||||
receiver_model.set_baseband_bandwidth(baseband_bandwidth);
|
||||
receiver_model.enable();
|
||||
|
||||
signal_token_tick_second = time::signal_tick_second += [this]() {
|
||||
this->on_tick_second();
|
||||
};
|
||||
}
|
||||
|
||||
CaptureAppView::~CaptureAppView() {
|
||||
time::signal_tick_second -= signal_token_tick_second;
|
||||
receiver_model.disable();
|
||||
}
|
||||
|
||||
|
@ -117,6 +123,11 @@ void CaptureAppView::on_record() {
|
|||
}
|
||||
}
|
||||
|
||||
void CaptureAppView::on_tick_second() {
|
||||
if( capture_thread ) {
|
||||
}
|
||||
}
|
||||
|
||||
void CaptureAppView::on_tuning_frequency_changed(rf::Frequency f) {
|
||||
receiver_model.set_tuning_frequency(f);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue