|
@@ -36,6 +36,7 @@ void evil_portal_scene_console_output_on_enter(void *context) {
|
|
|
if (app->is_command) {
|
|
if (app->is_command) {
|
|
|
furi_string_reset(app->text_box_store);
|
|
furi_string_reset(app->text_box_store);
|
|
|
app->text_box_store_strlen = 0;
|
|
app->text_box_store_strlen = 0;
|
|
|
|
|
+ app->sent_reset = false;
|
|
|
|
|
|
|
|
if (0 == strncmp("help", app->selected_tx_string, strlen("help"))) {
|
|
if (0 == strncmp("help", app->selected_tx_string, strlen("help"))) {
|
|
|
const char *help_msg =
|
|
const char *help_msg =
|
|
@@ -54,10 +55,9 @@ void evil_portal_scene_console_output_on_enter(void *context) {
|
|
|
const char *help_msg = "Logs saved.\n\n";
|
|
const char *help_msg = "Logs saved.\n\n";
|
|
|
furi_string_cat_str(app->text_box_store, help_msg);
|
|
furi_string_cat_str(app->text_box_store, help_msg);
|
|
|
app->text_box_store_strlen += strlen(help_msg);
|
|
app->text_box_store_strlen += strlen(help_msg);
|
|
|
- if(strlen(app->portal_logs) > 0) {
|
|
|
|
|
- write_logs(app->portal_logs);
|
|
|
|
|
- free(app->portal_logs);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ write_logs(app->portal_logs);
|
|
|
|
|
+ free(app->portal_logs);
|
|
|
|
|
+ strcpy(app->portal_logs, "");
|
|
|
if (app->show_stopscan_tip) {
|
|
if (app->show_stopscan_tip) {
|
|
|
const char *msg = "Press BACK to return\n";
|
|
const char *msg = "Press BACK to return\n";
|
|
|
furi_string_cat_str(app->text_box_store, msg);
|
|
furi_string_cat_str(app->text_box_store, msg);
|
|
@@ -65,7 +65,8 @@ void evil_portal_scene_console_output_on_enter(void *context) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (0 == strncmp(SET_HTML_CMD, app->selected_tx_string, strlen(SET_HTML_CMD))) {
|
|
|
|
|
|
|
+ if (0 ==
|
|
|
|
|
+ strncmp(SET_HTML_CMD, app->selected_tx_string, strlen(SET_HTML_CMD))) {
|
|
|
app->command_queue[0] = SET_AP_CMD;
|
|
app->command_queue[0] = SET_AP_CMD;
|
|
|
app->has_command_queue = true;
|
|
app->has_command_queue = true;
|
|
|
app->command_index = 0;
|
|
app->command_index = 0;
|
|
@@ -78,6 +79,7 @@ void evil_portal_scene_console_output_on_enter(void *context) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (0 == strncmp(RESET_CMD, app->selected_tx_string, strlen(RESET_CMD))) {
|
|
if (0 == strncmp(RESET_CMD, app->selected_tx_string, strlen(RESET_CMD))) {
|
|
|
|
|
+ app->sent_reset = true;
|
|
|
if (app->show_stopscan_tip) {
|
|
if (app->show_stopscan_tip) {
|
|
|
const char *msg = "Reseting portal\nPress BACK to return\n\n\n\n";
|
|
const char *msg = "Reseting portal\nPress BACK to return\n\n\n\n";
|
|
|
furi_string_cat_str(app->text_box_store, msg);
|
|
furi_string_cat_str(app->text_box_store, msg);
|
|
@@ -98,7 +100,8 @@ void evil_portal_scene_console_output_on_enter(void *context) {
|
|
|
app->uart, evil_portal_console_output_handle_rx_data_cb);
|
|
app->uart, evil_portal_console_output_handle_rx_data_cb);
|
|
|
|
|
|
|
|
if (app->is_command && app->selected_tx_string) {
|
|
if (app->is_command && app->selected_tx_string) {
|
|
|
- if (0 == strncmp(SET_HTML_CMD, app->selected_tx_string, strlen(SET_HTML_CMD))) {
|
|
|
|
|
|
|
+ if (0 ==
|
|
|
|
|
+ strncmp(SET_HTML_CMD, app->selected_tx_string, strlen(SET_HTML_CMD))) {
|
|
|
evil_portal_read_index_html(context);
|
|
evil_portal_read_index_html(context);
|
|
|
|
|
|
|
|
char *data = malloc(
|
|
char *data = malloc(
|