mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2024-12-13 19:54:39 +00:00
Loading pmem if enable before displaying splashscreen
This commit is contained in:
parent
1f32367495
commit
95eb1e6d59
@ -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>();
|
||||||
|
Loading…
Reference in New Issue
Block a user