mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-12 11:42:13 -04:00
Add Shutdown message, plumbing to send and handle.
This commit is contained in:
parent
15791e345d
commit
690c3c98db
7 changed files with 58 additions and 11 deletions
|
@ -27,10 +27,7 @@
|
|||
#include "ui_debug.hpp"
|
||||
#include "ui_receiver.hpp"
|
||||
|
||||
#include "portapack.hpp"
|
||||
#include "m4_startup.hpp"
|
||||
#include "spi_image.hpp"
|
||||
using namespace portapack;
|
||||
|
||||
namespace ui {
|
||||
|
||||
|
@ -149,13 +146,7 @@ Context& SystemView::context() const {
|
|||
|
||||
HackRFFirmwareView::HackRFFirmwareView(NavigationView& nav) {
|
||||
button_yes.on_select = [&nav](Button&){
|
||||
shutdown();
|
||||
|
||||
m4_init(spi_flash::hackrf, memory::map::m4_code_hackrf);
|
||||
|
||||
while(true) {
|
||||
__WFE();
|
||||
}
|
||||
m4_request_shutdown();
|
||||
};
|
||||
|
||||
button_no.on_select = [&nav](Button&){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue