Skip to content

Commit

Permalink
Separate received messages with line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Kogepan229 committed Dec 16, 2023
1 parent b7beb4a commit cd98cd1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ impl Cpu {
// Print received messages
if let Some(msgs) = socket::get_received_msgs() {
for val in msgs {
println!("rec: {}", val);
let ls = val.lines();
for l in ls {
println!("rec: {}", l);
}
}
}

Expand Down

0 comments on commit cd98cd1

Please sign in to comment.