Skip to content

Commit

Permalink
Set usable persistent memory defaults for Recon (#820)
Browse files Browse the repository at this point in the history
* Set usable defaults for Recon when PortaPack is not having a valid button battery installed

* fixed indentation

* fixed indentation

---------

Co-authored-by: GullCode <gullradriel@hotmail.com>
  • Loading branch information
gullradriel and GullCode committed Mar 4, 2023
1 parent 3c13161 commit 3d24864
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions firmware/common/portapack_persistent_memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,17 @@ namespace cache {

void defaults() {
cached_backup_ram = backup_ram_t();

// defaults values for recon app
set_recon_autosave_freqs( false );
set_recon_autostart_recon( true );
set_recon_continuous( true );
set_recon_clear_output( false );
set_recon_load_freqs( true );
set_recon_load_ranges( true );
set_recon_update_ranges_when_recon( true );
set_recon_load_hamradios( true );
set_recon_match_mode( 0 );
}

void init() {
Expand Down

0 comments on commit 3d24864

Please sign in to comment.