Skip to content
Snippets Groups Projects
Commit 038435a6 authored by Stephen D's avatar Stephen D
Browse files

bug fix

parent 05c4114c
No related branches found
No related tags found
No related merge requests found
......@@ -347,11 +347,9 @@ mod app {
})
.unwrap();
if !config.comment.is_empty() {
let mut buf: ArrayString<64> = ArrayString::new();
write!(&mut buf, "{} {} {}", sensors[0], sensors[1], sensors[2]).unwrap();
cats.add_comment(&config.comment).unwrap();
}
let mut buf: ArrayString<64> = ArrayString::new();
write!(&mut buf, "{} {} {}", sensors[0], sensors[1], sensors[2]).unwrap();
cats.add_comment(&buf).unwrap();
cats.add_route(Route::new(config.max_hops)).unwrap();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment