mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 13:03:13 +00:00
Deauther crash fix, Fixes issue #497
This commit is contained in:
parent
2dc0059b1c
commit
05b6ae7b20
2 changed files with 6 additions and 6 deletions
|
@ -371,8 +371,8 @@ int32_t esp8266_deauth_app(void* p) {
|
|||
view_port_input_callback_set(view_port, esp8266_deauth_module_input_callback, event_queue);
|
||||
|
||||
// Open GUI and register view_port
|
||||
Gui* gui = furi_record_open(RECORD_GUI);
|
||||
gui_add_view_port(gui, view_port, GuiLayerFullscreen);
|
||||
app->m_gui = furi_record_open(RECORD_GUI);
|
||||
gui_add_view_port(app->m_gui, view_port, GuiLayerFullscreen);
|
||||
|
||||
//notification_message(app->notification, &sequence_set_only_blue_255);
|
||||
|
||||
|
@ -513,7 +513,7 @@ int32_t esp8266_deauth_app(void* p) {
|
|||
|
||||
view_port_enabled_set(view_port, false);
|
||||
|
||||
gui_remove_view_port(gui, view_port);
|
||||
gui_remove_view_port(app->m_gui, view_port);
|
||||
|
||||
// Close gui record
|
||||
furi_record_close(RECORD_GUI);
|
||||
|
|
|
@ -889,8 +889,8 @@ int32_t wifi_scanner_app(void* p) {
|
|||
view_port_input_callback_set(view_port, wifi_module_input_callback, event_queue);
|
||||
|
||||
// Open GUI and register view_port
|
||||
Gui* gui = furi_record_open(RECORD_GUI);
|
||||
gui_add_view_port(gui, view_port, GuiLayerFullscreen);
|
||||
app->m_gui = furi_record_open(RECORD_GUI);
|
||||
gui_add_view_port(app->m_gui, view_port, GuiLayerFullscreen);
|
||||
|
||||
//notification_message(app->notification, &sequence_set_only_blue_255);
|
||||
|
||||
|
@ -1040,7 +1040,7 @@ int32_t wifi_scanner_app(void* p) {
|
|||
|
||||
view_port_enabled_set(view_port, false);
|
||||
|
||||
gui_remove_view_port(gui, view_port);
|
||||
gui_remove_view_port(app->m_gui, view_port);
|
||||
|
||||
// Close gui record
|
||||
furi_record_close(RECORD_GUI);
|
||||
|
|
Loading…
Reference in a new issue