mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Fix evil portal line capture
This commit is contained in:
@@ -6,10 +6,6 @@ void evil_portal_console_output_handle_rx_data_cb(uint8_t* buf, size_t len, void
|
||||
furi_assert(context);
|
||||
Evil_PortalApp* app = context;
|
||||
|
||||
if(app->capture_line) {
|
||||
furi_string_cat_printf(app->captured_line, "%s", buf);
|
||||
}
|
||||
|
||||
// If text box store gets too big, then truncate it
|
||||
app->text_box_store_strlen += len;
|
||||
if(app->text_box_store_strlen >= EVIL_PORTAL_TEXT_BOX_STORE_SIZE - 1) {
|
||||
@@ -21,6 +17,10 @@ void evil_portal_console_output_handle_rx_data_cb(uint8_t* buf, size_t len, void
|
||||
buf[len] = '\0';
|
||||
furi_string_cat_printf(app->text_box_store, "%s", buf);
|
||||
|
||||
if(app->capture_line) {
|
||||
furi_string_cat_printf(app->captured_line, "%s", buf);
|
||||
}
|
||||
|
||||
text_box_set_text(app->text_box, furi_string_get_cstr(app->text_box_store));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user