Skip to content

Commit

Permalink
fix typo in radio-puzzle
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelraz authored and listochkin committed May 24, 2024
1 parent f5d543a commit b6be90a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nrf52-code/radio-app/src/bin/radio-puzzle-1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fn main() -> ! {
if let Ok(data) = dk::send_recv(&mut packet, &[input], &mut radio, &mut timer, TEN_MS) {
// response should be one byte large
if data.len() == 1 {
let output = packet[0];
let output = data[0];

defmt::println!("{:02x} -> {:02x}", input, output);
// or cast to `char` for a more readable output
Expand Down

0 comments on commit b6be90a

Please sign in to comment.