diff options
author | Keith Packard <keithp@keithp.com> | 2009-12-05 15:36:12 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-12-05 15:37:33 -0800 |
commit | 46f03ab3145a61139c8ca6fc99e8f2798728b5a9 (patch) | |
tree | 73ccbbe914fbe9e378134d3620fcd0b35487bc36 /src/ao_radio.c | |
parent | bf29a62532fec12e6af2d2f3a6624882c863e933 (diff) |
Re-order config values. Change frequency to cal
Place more often used values at top, and consistently call the radio
value 'calibration' instead of 'frequency'.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_radio.c')
-rw-r--r-- | src/ao_radio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ao_radio.c b/src/ao_radio.c index 6d25df39..4dea6dce 100644 --- a/src/ao_radio.c +++ b/src/ao_radio.c @@ -331,9 +331,9 @@ ao_radio_get(void) ao_mutex_get(&ao_radio_mutex); ao_radio_idle(); RF_CHANNR = ao_config.radio_channel; - RF_FREQ2 = (uint8_t) (ao_config.radio_frequency >> 16); - RF_FREQ1 = (uint8_t) (ao_config.radio_frequency >> 8); - RF_FREQ0 = (uint8_t) (ao_config.radio_frequency); + 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); } #define ao_radio_put() ao_mutex_put(&ao_radio_mutex) |