summaryrefslogtreecommitdiff
path: root/src/ao_radio.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-08-03 23:07:53 -0700
committerKeith Packard <keithp@keithp.com>2011-08-08 12:13:28 -0700
commitba5dc35388d28c5769eaabc970c4d4b8c2c2ff9c (patch)
treee67bf949ec03307df435c99ae9927367156b9b47 /src/ao_radio.c
parente1e5c9b3e24670e9f58c6f7389eafb3338efdb40 (diff)
altos: Add ability to set arbitrary radio frequency
This adds a separate config parameter to control the raw radio frequency setting, allowing the user to select an arbitrary frequency instead of being forced to choose one of the 10 pre-defined 'channels'. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_radio.c')
-rw-r--r--src/ao_radio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ao_radio.c b/src/ao_radio.c
index 4c382bb9..1fb0eea6 100644
--- a/src/ao_radio.c
+++ b/src/ao_radio.c
@@ -287,9 +287,9 @@ ao_radio_get(uint8_t len)
ao_mutex_get(&ao_radio_mutex);
ao_radio_idle();
RF_CHANNR = ao_config.radio_channel;
- RF_FREQ2 = (uint8_t) (ao_config.radio_cal >> 16);
- RF_FREQ1 = (uint8_t) (ao_config.radio_cal >> 8);
- RF_FREQ0 = (uint8_t) (ao_config.radio_cal);
+ RF_FREQ2 = (uint8_t) (ao_config.radio_setting >> 16);
+ RF_FREQ1 = (uint8_t) (ao_config.radio_setting >> 8);
+ RF_FREQ0 = (uint8_t) (ao_config.radio_setting);
RF_PKTLEN = len;
}