From dbafa16cfa897b2a5c6cf455cf8675e83eb0d7d6 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 4 Feb 2015 20:30:15 -0800 Subject: [PATCH] altos/telebt-v3.0: Set initial radio cal to a sensible value CC1200 uses a different xtal than CC1120, so the default calibration needs to change. This value hit 434.550 on SN 2407, so it seems like a reasonable place to start. Signed-off-by: Keith Packard --- src/telebt-v3.0/ao_pins.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telebt-v3.0/ao_pins.h b/src/telebt-v3.0/ao_pins.h index bcda90d1..838f0dfc 100644 --- a/src/telebt-v3.0/ao_pins.h +++ b/src/telebt-v3.0/ao_pins.h @@ -184,7 +184,7 @@ struct ao_adc { /* gets pretty close to 434.550 */ -#define AO_RADIO_CAL_DEFAULT 0x6ca333 +#define AO_RADIO_CAL_DEFAULT 5695485 #define AO_FEC_DEBUG 0 #define AO_CC1200_SPI_CS_PORT (&stm_gpiob) -- 2.30.2