diff --git a/firmware/application/app_settings.cpp b/firmware/application/app_settings.cpp index df93a20b..72734a4d 100644 --- a/firmware/application/app_settings.cpp +++ b/firmware/application/app_settings.cpp @@ -51,6 +51,7 @@ int app_settings::load(std::string application, AppSettings* settings) { settings->tx_amp=std::app_settings::read_long_long(file_content, "tx_amp="); settings->tx_frequency=std::app_settings::read_long_long(file_content, "tx_frequency="); settings->tx_gain=std::app_settings::read_long_long(file_content, "tx_gain="); + settings->step=std::app_settings::read_long_long(file_content, "step="); rc = SETTINGS_OK; } else rc = SETTINGS_UNABLE_TO_LOAD; @@ -79,6 +80,7 @@ int app_settings::save(std::string application, AppSettings* settings) { // Save other settings from struct settings_file.write_line("rx_frequency="+to_string_dec_uint(settings->rx_frequency)); settings_file.write_line("tx_frequency="+to_string_dec_uint(settings->tx_frequency)); + settings_file.write_line("step="+to_string_dec_uint(settings->step)); rc = SETTINGS_OK; } diff --git a/firmware/application/app_settings.hpp b/firmware/application/app_settings.hpp index 9a877978..004f0673 100644 --- a/firmware/application/app_settings.hpp +++ b/firmware/application/app_settings.hpp @@ -59,6 +59,7 @@ public: uint32_t tx_frequency; uint8_t tx_gain; uint8_t vga; + uint32_t step; }; int load(std::string application, AppSettings* settings);