Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
DaneSlattery authored Oct 3, 2024
1 parent 1070d1b commit a8faabe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion espflash/src/connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ impl Connection {

let read_slice = String::from_utf8_lossy(&buff[..read_bytes as usize]).into_owned();

let pattern = Regex::new(r"boot:(0x[0-9a-fA-F]+)([\s\S]*waiting for download)?").unwrap();
let pattern =
Regex::new(r"boot:(0x[0-9a-fA-F]+)([\s\S]*waiting for download)?").unwrap();

// Search for the pattern in the read data
if let Some(data) = pattern.captures(&read_slice) {
Expand Down

0 comments on commit a8faabe

Please sign in to comment.