mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-02-03 11:32:20 +00:00
make the puzzle dongle app operate on channel 25
and adjust puzzle-radio starter code accordingly this reduces the chance of people using puzzle-radio with the wrong dongle app (i.e. loopback); that would lead to them getting response different than what's indicated in the text I have also added the app name to the dongle / serial-term output: ``` text deviceid=75fa82ad7588b3c7 channel=20 TxPower=+8dBm app=loopback.hex ```
This commit is contained in:
parent
8140c7bba9
commit
c918a995d7
3 changed files with 1847 additions and 1842 deletions
|
@ -5,7 +5,7 @@
|
||||||
use core::str;
|
use core::str;
|
||||||
|
|
||||||
use cortex_m_rt::entry;
|
use cortex_m_rt::entry;
|
||||||
use dk::ieee802154::Packet;
|
use dk::ieee802154::{Channel, Packet};
|
||||||
use panic_log as _; // the panicking behavior
|
use panic_log as _; // the panicking behavior
|
||||||
|
|
||||||
#[entry]
|
#[entry]
|
||||||
|
@ -13,6 +13,9 @@ fn main() -> ! {
|
||||||
let board = dk::init().unwrap();
|
let board = dk::init().unwrap();
|
||||||
let mut radio = board.radio;
|
let mut radio = board.radio;
|
||||||
|
|
||||||
|
// puzzle.hex uses channel 25
|
||||||
|
radio.set_channel(Channel::_25);
|
||||||
|
|
||||||
let mut packet = Packet::new();
|
let mut packet = Packet::new();
|
||||||
|
|
||||||
// try these
|
// try these
|
||||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue