note in the code that the DK's & Dongle's channels must match

This commit is contained in:
Jorge Aparicio 2020-07-16 10:31:08 +02:00
parent 473bb3edc7
commit 7b49851f97
3 changed files with 8 additions and 5 deletions

View file

@ -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();

View file

@ -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";

View file

@ -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();