mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-01-09 15:55:37 +00:00
note in the code that the DK's & Dongle's channels must match
This commit is contained in:
parent
473bb3edc7
commit
7b49851f97
3 changed files with 8 additions and 5 deletions
|
@ -16,8 +16,9 @@ fn main() -> ! {
|
|||
let mut radio = board.radio;
|
||||
let mut timer = board.timer;
|
||||
|
||||
// puzzle.hex uses channel 25
|
||||
radio.set_channel(Channel::_25);
|
||||
// puzzle.hex uses channel 25 by default
|
||||
// NOTE if you ran `change-channel` then you may need to update the channel here
|
||||
radio.set_channel(Channel::_25); // <- must match the Dongle's listening channel
|
||||
|
||||
let mut packet = Packet::new();
|
||||
|
||||
|
|
|
@ -17,7 +17,8 @@ fn main() -> ! {
|
|||
let mut radio = board.radio;
|
||||
let mut timer = board.timer;
|
||||
|
||||
radio.set_channel(Channel::_20);
|
||||
// NOTE if you ran `change-channel` then you may need to update the channel here
|
||||
radio.set_channel(Channel::_20); // <- must match the Dongle's listening channel
|
||||
|
||||
let mut packet = Packet::new();
|
||||
let msg = b"olleh";
|
||||
|
|
|
@ -13,8 +13,9 @@ fn main() -> ! {
|
|||
let board = dk::init().unwrap();
|
||||
let mut radio = board.radio;
|
||||
|
||||
// these are the initial settings
|
||||
radio.set_channel(Channel::_20);
|
||||
// these are the default settings of the DK's radio
|
||||
// NOTE if you ran `change-channel` then you may need to update the channel here
|
||||
radio.set_channel(Channel::_20); // <- must match the Dongle's listening channel
|
||||
radio.set_txpower(TxPower::Pos8dBm);
|
||||
|
||||
let mut packet = Packet::new();
|
||||
|
|
Loading…
Reference in a new issue