From 00ee78f53329527487bef19d16ab93c063debf96 Mon Sep 17 00:00:00 2001 From: furrtek Date: Tue, 15 Sep 2015 22:34:36 +0200 Subject: [PATCH] Play dead init --- .gitignore | 1 - firmware/application/ui_navigation.cpp | 5 +++-- firmware/portapack-h1-firmware.bin | Bin 386836 -> 386836 bytes 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 6b8bce72..1aa5ca1e 100644 --- a/.gitignore +++ b/.gitignore @@ -29,7 +29,6 @@ # Other compiler/linker outputs *.elf -*.bin *.map *.lst .dep/ diff --git a/firmware/application/ui_navigation.cpp b/firmware/application/ui_navigation.cpp index 50f6f529..c0bc619d 100644 --- a/firmware/application/ui_navigation.cpp +++ b/firmware/application/ui_navigation.cpp @@ -148,7 +148,8 @@ SystemView::SystemView( // Initial view. // TODO: Restore from non-volatile memory? - if (persistent_memory::playing_dead()) + + if (persistent_memory::playing_dead() == 0x59) navigation_view.push(new PlayDeadView { navigation_view, true }); else navigation_view.push(new BMPView { navigation_view }); @@ -232,7 +233,7 @@ void PlayDeadView::focus() { PlayDeadView::PlayDeadView(NavigationView& nav, bool booting) { _booting = booting; - persistent_memory::set_playing_dead(1); + persistent_memory::set_playing_dead(0x59); add_children({ { &text_playdead1, diff --git a/firmware/portapack-h1-firmware.bin b/firmware/portapack-h1-firmware.bin index 255bb4ce9bffa4d62b53a10ef3fcb65dd948a952..960b19d6f55410331523e33062f5f28212193b0a 100644 GIT binary patch delta 368 zcmbPoPJGHa@rD-07N!>FEi5Vf>w7maO=O<*|9j;xKW_##4rA>EZ5b0|hRFrW2I?GZ zk{cE`u&he3)=Oqx;qIy4@VJ5VL&!glnMoO}s~Kke|6cZsbp_{#)4#Q40*o0aPf$*7 z5U>X6D6nQ-VFOif169umR38UczxlVm%m?KhbL9q>`c?0NN{u`h1C34t8m1bI>u53kqW=RfBnfYn|l?mt6P72iPGg(KKJEW^ho7t~ zHDvyMm-)-O;{SKYKO73n5;#6g{ii9zG@CWSIYG*sW5VMENpA(2DTa#^eti%4r!C{m zHEWKsWQJ4%_bjf7kr@gyQ3>1=e|^6U)m#qO%nR1cFEi5Vf>-#sbOk|z(|9j;xe{Zfe9LCxS+A=1_jFSzN8Pt^< z1k?(Y*;eT%v#;>*Om0}*@T`IJL&!g_nMoP!s~Knf|6cZseFf)-)4#Q40*sk}dXyU` z0M#cqu&)rXw)KRlw}Gl>0;-P#tKSS%pJU8C`GYcly&c;s_7%pS$_?oa%fQB~LX|TE zm8XN1&-tC@rY$2>t79xxU?B7R`O=gLt%LW$A`)PG-X(3vnDtvNO^Njc$^^VtspbSaB;$~@9uv8 zv}Jf^%`ukDkV@d4#WOK7LqR4gfp_As?-!w(OW~S%!J2uzTMQL|R{sCK;;(|tukU;R kXvpwSUwVK=efot1EYH|hIB{H9qtL$RAj|eW2U#Oj0RT^&#{d8T