mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-07 14:12:31 -04:00
Add second pocsag proc for experimenting (#1428)
This commit is contained in:
parent
900086c1c9
commit
5d602ece5c
10 changed files with 820 additions and 30 deletions
|
@ -54,7 +54,8 @@ POCSAGSettingsView::POCSAGSettingsView(
|
|||
POCSAGSettings& settings)
|
||||
: settings_{settings} {
|
||||
add_children(
|
||||
{&check_log,
|
||||
{&check_beta,
|
||||
&check_log,
|
||||
&check_log_raw,
|
||||
&check_small_font,
|
||||
&check_hide_bad,
|
||||
|
@ -63,6 +64,7 @@ POCSAGSettingsView::POCSAGSettingsView(
|
|||
&field_ignore,
|
||||
&button_save});
|
||||
|
||||
check_beta.set_value(settings_.use_new_proc);
|
||||
check_log.set_value(settings_.enable_logging);
|
||||
check_log_raw.set_value(settings_.enable_raw_log);
|
||||
check_small_font.set_value(settings_.enable_small_font);
|
||||
|
@ -72,6 +74,7 @@ POCSAGSettingsView::POCSAGSettingsView(
|
|||
field_ignore.set_value(settings_.address_to_ignore);
|
||||
|
||||
button_save.on_select = [this, &nav](Button&) {
|
||||
settings_.use_new_proc = check_beta.value();
|
||||
settings_.enable_logging = check_log.value();
|
||||
settings_.enable_raw_log = check_log_raw.value();
|
||||
settings_.enable_small_font = check_small_font.value();
|
||||
|
@ -86,7 +89,10 @@ POCSAGSettingsView::POCSAGSettingsView(
|
|||
|
||||
POCSAGAppView::POCSAGAppView(NavigationView& nav)
|
||||
: nav_{nav} {
|
||||
baseband::run_image(portapack::spi_flash::image_tag_pocsag);
|
||||
if (settings_.use_new_proc)
|
||||
baseband::run_image(portapack::spi_flash::image_tag_pocsag2);
|
||||
else
|
||||
baseband::run_image(portapack::spi_flash::image_tag_pocsag);
|
||||
|
||||
add_children(
|
||||
{&rssi,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue