Deauther crash fix, Fixes issue #497

This commit is contained in:
MX 2023-06-02 17:03:03 +03:00
parent 2dc0059b1c
commit 05b6ae7b20
No known key found for this signature in database
GPG key ID: 7CCC66B7DBDD1C83
2 changed files with 6 additions and 6 deletions

View file

@ -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);

View file

@ -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);