altos: More attempts to get the carrier steady.
authorKeith Packard <keithp@keithp.com>
Thu, 16 May 2013 03:33:03 +0000 (20:33 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 16 May 2013 03:33:03 +0000 (20:33 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_cc1120.c

index 93ef3d71f8743105b0fb26bb4b1c2a7ceb7305dd..f9729f666761976b26f77c29682ff88550f4d00b 100644 (file)
@@ -691,6 +691,12 @@ ao_radio_test_cmd(void)
                ao_radio_get(0xff);
                ao_radio_set_mode(AO_RADIO_MODE_TEST);
                ao_radio_strobe(CC1120_STX);
+               { int i;
+                       for (i = 0; i < 10; i++) {
+                               ao_delay(AO_MS_TO_TICKS(100));
+                               ao_radio_reg_write(CC1120_SOFT_TX_DATA_IN, 0);
+                       }
+               }
 #if CC1120_TRACE
                { int t; 
                        for (t = 0; t < 10; t++) {