Skip to content

Commit

Permalink
Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpallant committed Dec 12, 2024
1 parent 5f6eb6f commit 14655c0
Showing 1 changed file with 52 additions and 17 deletions.
69 changes: 52 additions & 17 deletions nrf52-code/loopback-fw/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ mod app {
});

defmt::debug!("Building USB allocator...");
let usbd = dongle::UsbBus::new(dongle::hal::usbd::UsbPeripheral::new(board.usbd, board.clocks));
let usbd = dongle::UsbBus::new(dongle::hal::usbd::UsbPeripheral::new(
board.usbd,
board.clocks,
));
let usb_alloc = ctx
.local
.usb_alloc
Expand Down Expand Up @@ -207,52 +210,84 @@ mod app {
let _ = writeln!(writer, "\nChanging Channel to {}", n);
match n {
11 => {
ctx.local.radio.set_channel(dongle::ieee802154::Channel::_11);
ctx.local
.radio
.set_channel(dongle::ieee802154::Channel::_11);
}
12 => {
ctx.local.radio.set_channel(dongle::ieee802154::Channel::_12);
ctx.local
.radio
.set_channel(dongle::ieee802154::Channel::_12);
}
13 => {
ctx.local.radio.set_channel(dongle::ieee802154::Channel::_13);
ctx.local
.radio
.set_channel(dongle::ieee802154::Channel::_13);
}
14 => {
ctx.local.radio.set_channel(dongle::ieee802154::Channel::_14);
ctx.local
.radio
.set_channel(dongle::ieee802154::Channel::_14);
}
15 => {
ctx.local.radio.set_channel(dongle::ieee802154::Channel::_15);
ctx.local
.radio
.set_channel(dongle::ieee802154::Channel::_15);
}
16 => {
ctx.local.radio.set_channel(dongle::ieee802154::Channel::_16);
ctx.local
.radio
.set_channel(dongle::ieee802154::Channel::_16);
}
17 => {
ctx.local.radio.set_channel(dongle::ieee802154::Channel::_17);
ctx.local
.radio
.set_channel(dongle::ieee802154::Channel::_17);
}
18 => {
ctx.local.radio.set_channel(dongle::ieee802154::Channel::_18);
ctx.local
.radio
.set_channel(dongle::ieee802154::Channel::_18);
}
19 => {
ctx.local.radio.set_channel(dongle::ieee802154::Channel::_19);
ctx.local
.radio
.set_channel(dongle::ieee802154::Channel::_19);
}
20 => {
ctx.local.radio.set_channel(dongle::ieee802154::Channel::_20);
ctx.local
.radio
.set_channel(dongle::ieee802154::Channel::_20);
}
21 => {
ctx.local.radio.set_channel(dongle::ieee802154::Channel::_21);
ctx.local
.radio
.set_channel(dongle::ieee802154::Channel::_21);
}
22 => {
ctx.local.radio.set_channel(dongle::ieee802154::Channel::_22);
ctx.local
.radio
.set_channel(dongle::ieee802154::Channel::_22);
}
23 => {
ctx.local.radio.set_channel(dongle::ieee802154::Channel::_23);
ctx.local
.radio
.set_channel(dongle::ieee802154::Channel::_23);
}
24 => {
ctx.local.radio.set_channel(dongle::ieee802154::Channel::_24);
ctx.local
.radio
.set_channel(dongle::ieee802154::Channel::_24);
}
25 => {
ctx.local.radio.set_channel(dongle::ieee802154::Channel::_25);
ctx.local
.radio
.set_channel(dongle::ieee802154::Channel::_25);
}
26 => {
ctx.local.radio.set_channel(dongle::ieee802154::Channel::_26);
ctx.local
.radio
.set_channel(dongle::ieee802154::Channel::_26);
}
_ => {
defmt::info!("Bad Channel {}!", n);
Expand Down

0 comments on commit 14655c0

Please sign in to comment.