Loading pmem if enable before displaying splashscreen

This commit is contained in:
GullCode 2023-03-31 14:24:54 +02:00
parent 1f32367495
commit 95eb1e6d59

View File

@ -722,6 +722,14 @@ SystemView::SystemView(
navigation_view.push<SystemMenuView>(); navigation_view.push<SystemMenuView>();
File pmem_flag_file_handle ;
std::string pmem_flag_file = "/SETTINGS/PMEM_FILEFLAG" ;
auto result = pmem_flag_file_handle.open(pmem_flag_file);
if(!result.is_valid())
{
portapack::persistent_memory::load_persistent_settings_from_file("SETTINGS/pmem_settings");
}
if (portapack::persistent_memory::config_splash()) if (portapack::persistent_memory::config_splash())
{ {
navigation_view.push<BMPView>(); navigation_view.push<BMPView>();