Play dead init

This commit is contained in:
furrtek 2015-09-15 22:34:36 +02:00
parent 457baa65f4
commit 00ee78f533
3 changed files with 3 additions and 3 deletions

1
.gitignore vendored
View File

@ -29,7 +29,6 @@
# Other compiler/linker outputs # Other compiler/linker outputs
*.elf *.elf
*.bin
*.map *.map
*.lst *.lst
.dep/ .dep/

View File

@ -148,7 +148,8 @@ SystemView::SystemView(
// Initial view. // Initial view.
// TODO: Restore from non-volatile memory? // 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 }); navigation_view.push(new PlayDeadView { navigation_view, true });
else else
navigation_view.push(new BMPView { navigation_view }); navigation_view.push(new BMPView { navigation_view });
@ -232,7 +233,7 @@ void PlayDeadView::focus() {
PlayDeadView::PlayDeadView(NavigationView& nav, bool booting) { PlayDeadView::PlayDeadView(NavigationView& nav, bool booting) {
_booting = booting; _booting = booting;
persistent_memory::set_playing_dead(1); persistent_memory::set_playing_dead(0x59);
add_children({ { add_children({ {
&text_playdead1, &text_playdead1,

Binary file not shown.