@@ -36,6 +36,7 @@ void evil_portal_scene_console_output_on_enter(void *context) {
36
36
if (app -> is_command ) {
37
37
furi_string_reset (app -> text_box_store );
38
38
app -> text_box_store_strlen = 0 ;
39
+ app -> sent_reset = false;
39
40
40
41
if (0 == strncmp ("help" , app -> selected_tx_string , strlen ("help" ))) {
41
42
const char * help_msg =
@@ -54,18 +55,18 @@ void evil_portal_scene_console_output_on_enter(void *context) {
54
55
const char * help_msg = "Logs saved.\n\n" ;
55
56
furi_string_cat_str (app -> text_box_store , help_msg );
56
57
app -> text_box_store_strlen += strlen (help_msg );
57
- if (strlen (app -> portal_logs ) > 0 ) {
58
- write_logs (app -> portal_logs );
59
- free (app -> portal_logs );
60
- }
58
+ write_logs (app -> portal_logs );
59
+ free (app -> portal_logs );
60
+ strcpy (app -> portal_logs , "" );
61
61
if (app -> show_stopscan_tip ) {
62
62
const char * msg = "Press BACK to return\n" ;
63
63
furi_string_cat_str (app -> text_box_store , msg );
64
64
app -> text_box_store_strlen += strlen (msg );
65
65
}
66
66
}
67
67
68
- if (0 == strncmp (SET_HTML_CMD , app -> selected_tx_string , strlen (SET_HTML_CMD ))) {
68
+ if (0 ==
69
+ strncmp (SET_HTML_CMD , app -> selected_tx_string , strlen (SET_HTML_CMD ))) {
69
70
app -> command_queue [0 ] = SET_AP_CMD ;
70
71
app -> has_command_queue = true;
71
72
app -> command_index = 0 ;
@@ -78,6 +79,7 @@ void evil_portal_scene_console_output_on_enter(void *context) {
78
79
}
79
80
80
81
if (0 == strncmp (RESET_CMD , app -> selected_tx_string , strlen (RESET_CMD ))) {
82
+ app -> sent_reset = true;
81
83
if (app -> show_stopscan_tip ) {
82
84
const char * msg = "Reseting portal\nPress BACK to return\n\n\n\n" ;
83
85
furi_string_cat_str (app -> text_box_store , msg );
@@ -98,7 +100,8 @@ void evil_portal_scene_console_output_on_enter(void *context) {
98
100
app -> uart , evil_portal_console_output_handle_rx_data_cb );
99
101
100
102
if (app -> is_command && app -> selected_tx_string ) {
101
- if (0 == strncmp (SET_HTML_CMD , app -> selected_tx_string , strlen (SET_HTML_CMD ))) {
103
+ if (0 ==
104
+ strncmp (SET_HTML_CMD , app -> selected_tx_string , strlen (SET_HTML_CMD ))) {
102
105
evil_portal_read_index_html (context );
103
106
104
107
char * data = malloc (
0 commit comments