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

deb package confirmed working @ startup

parent 4bcaf488
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,18 @@ impl Controller {
ThreadPriority::Max.set_for_current().unwrap();
//let mut radio = UartRadio::new("/dev/ttyAMA0").expect("Could not initialize radio");
let mut radio = SpiRadio::new().expect("Could not initialize radio");
let mut radio = loop {
let r = SpiRadio::new();
match r {
Ok(r) => break r,
Err(e) => {
eprintln!("Error initializing radio: {e}");
}
}
thread::sleep(Duration::from_millis(1000));
};
let mut text_msg_id = 0;
loop {
......
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