|
@@ -35,7 +35,8 @@ void uart_terminal_scene_console_output_on_enter(void* context) {
|
|
|
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;
|
|
|
|
|
|
|
|
- if(0 == strncmp("help", app->selected_tx_string, strlen("help"))) {
|
|
|
|
|
|
|
+ // app->show_stopscan_tip in the if is just a hack to get the help displayed since there is no commands in this app
|
|
|
|
|
+ if(app->show_stopscan_tip || 0 == strncmp("help", app->selected_tx_string, strlen("help"))) {
|
|
|
const char* help_msg =
|
|
const char* help_msg =
|
|
|
"Morse Flasher for\nMayhem Fin\n\nBased on UART terminal by\ncool4uma, which is a\nmodified WiFi Marauder\ncompanion by 0xchocolate\n\n";
|
|
"Morse Flasher for\nMayhem Fin\n\nBased on UART terminal by\ncool4uma, which is a\nmodified WiFi Marauder\ncompanion by 0xchocolate\n\n";
|
|
|
furi_string_cat_str(app->text_box_store, help_msg);
|
|
furi_string_cat_str(app->text_box_store, help_msg);
|
|
@@ -60,7 +61,7 @@ void uart_terminal_scene_console_output_on_enter(void* context) {
|
|
|
app->uart, uart_terminal_console_output_handle_rx_data_cb); // setup callback for rx thread
|
|
app->uart, uart_terminal_console_output_handle_rx_data_cb); // setup callback for rx thread
|
|
|
|
|
|
|
|
// Send command with newline '\n'
|
|
// Send command with newline '\n'
|
|
|
- /*if(app->is_command && app->selected_tx_string)*/ {
|
|
|
|
|
|
|
+ /*if(!app->is_command && app->selected_tx_string)*/ {
|
|
|
uart_terminal_uart_tx(
|
|
uart_terminal_uart_tx(
|
|
|
(uint8_t*)(app->selected_tx_string), strlen(app->selected_tx_string));
|
|
(uint8_t*)(app->selected_tx_string), strlen(app->selected_tx_string));
|
|
|
uart_terminal_uart_tx((uint8_t*)("\n"), 1);
|
|
uart_terminal_uart_tx((uint8_t*)("\n"), 1);
|