Round radio calibration value instead of truncating
authorKeith Packard <keithp@keithp.com>
Fri, 12 Mar 2010 18:35:12 +0000 (10:35 -0800)
committerKeith Packard <keithp@keithp.com>
Fri, 12 Mar 2010 18:35:12 +0000 (10:35 -0800)
commit93df98898f8cd199ae13158bc4f65e3494c954ad
tree1206218556ed9c92aa298be70ada13e13450a940
parent6e61170d42936c18cd6efba6f4c14af616a30745
Round radio calibration value instead of truncating

The radio calibration function in the bring-up code was truncating the
radio calibration value which caused the resulting frequency to
always measure above the target frequency, instead of trying to get as
close as possible. This change will result in a closer frequency
match, but may sometimes be below the target frequency.

Signed-off-by: Keith Packard <keithp@keithp.com>
ao-bringup/turnon_teledongle