Unclever first attempt at display sleep.

This commit is contained in:
Jared Boone 2016-01-27 20:33:54 -08:00
parent 1caf6952d8
commit 894d4b955c
6 changed files with 48 additions and 12 deletions

View file

@ -81,6 +81,11 @@ int main(void) {
event_dispatcher.request_stop();
}
);
EventDispatcher::message_map().register_handler(Message::ID::DisplaySleep,
[&event_dispatcher](const Message* const) {
event_dispatcher.set_display_sleep(true);
}
);
m4_init(portapack::spi_flash::baseband, portapack::memory::map::m4_code);