Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
liamkinne committed Sep 5, 2024
1 parent 68243e9 commit ee1fe30
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/bin/telesto/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,10 @@ async fn main() {
Commands::Reset => radio.reset().await.unwrap(),
Commands::Echo => loop {
let event = radio.poll_event().await;

match event.command() {
Event::DataReceived => {
println!("Got data: {:#02x?}", event.data());

radio.send(event.data()).await.unwrap();

println!("Sent response.");
}
_ => {}
Expand All @@ -96,7 +93,6 @@ async fn main() {
Commands::Standby => radio.standby().await.unwrap(),
Commands::Rssi => {
let rssi = radio.rssi().await.unwrap();

if rssi == 0x80 {
println!("No RSSI available");
} else {
Expand Down

0 comments on commit ee1fe30

Please sign in to comment.