mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-11 09:09:29 +00:00
App settings revamp (#1139)
* WIP AppSetting overhaul * WIP migrating apps to new settings. * remove settings, rename tuned => target * formatting * Minor fixes * Fix hang on app load * run formatter * PR comment fixes * Load modulation into receiver model in app_settings * Run formatter --------- Co-authored-by: kallanreed <kallanreed@outlook.com>
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include "capture_app.hpp"
|
||||
#include "baseband_api.hpp"
|
||||
|
||||
#include "app_settings.hpp"
|
||||
#include "portapack.hpp"
|
||||
#include "message.hpp"
|
||||
|
||||
@@ -53,11 +54,10 @@ class SpectrumPainterView : public View {
|
||||
std::string title() const override { return "Spec.Painter"; };
|
||||
|
||||
private:
|
||||
void on_target_frequency_changed(rf::Frequency f);
|
||||
void set_target_frequency(const rf::Frequency new_value);
|
||||
rf::Frequency target_frequency() const;
|
||||
|
||||
NavigationView& nav_;
|
||||
app_settings::SettingsManager settings_{
|
||||
"tx_painter", app_settings::Mode::TX};
|
||||
|
||||
bool image_input_avaliable{false};
|
||||
bool tx_active{false};
|
||||
uint32_t tx_mode{0};
|
||||
|
||||
Reference in New Issue
Block a user