From 7b49851f975c4c7747d0c88fe8b109c6809e7d8d Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Thu, 16 Jul 2020 10:31:08 +0200 Subject: [PATCH] note in the code that the DK's & Dongle's channels must match --- beginner/apps/src/bin/radio-puzzle.rs | 5 +++-- beginner/apps/src/bin/radio-recv.rs | 3 ++- beginner/apps/src/bin/radio-send.rs | 5 +++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/beginner/apps/src/bin/radio-puzzle.rs b/beginner/apps/src/bin/radio-puzzle.rs index e2fa880..d071c0f 100644 --- a/beginner/apps/src/bin/radio-puzzle.rs +++ b/beginner/apps/src/bin/radio-puzzle.rs @@ -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(); diff --git a/beginner/apps/src/bin/radio-recv.rs b/beginner/apps/src/bin/radio-recv.rs index 1bc1c14..7116005 100644 --- a/beginner/apps/src/bin/radio-recv.rs +++ b/beginner/apps/src/bin/radio-recv.rs @@ -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"; diff --git a/beginner/apps/src/bin/radio-send.rs b/beginner/apps/src/bin/radio-send.rs index ab38dff..297ec15 100644 --- a/beginner/apps/src/bin/radio-send.rs +++ b/beginner/apps/src/bin/radio-send.rs @@ -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();