Permalink
Browse files

Set preamble_length to 16 regardless of radio type

  • Loading branch information...
1 parent 95dbc62 commit f10cf9a81c285c192141ab8fa2d257b6e9f45de8 @jschall jschall committed with tridge Nov 19, 2012
Showing with 0 additions and 6 deletions.
  1. +0 −6 Firmware/radio/radio.c
View
@@ -790,13 +790,7 @@ radio_configure(__pdata uint8_t air_rate)
register_write(EZRADIOPRO_TX_FIFO_CONTROL_2, TX_FIFO_THRESHOLD_LOW);
register_write(EZRADIOPRO_RX_FIFO_CONTROL, RX_FIFO_THRESHOLD_HIGH);
-#if RFD900_DIVERSITY
- // with antenna diversity a longer preamble is recommended
settings.preamble_length = 16;
-#else
- // use 10 nibbles preamble, which is recommended for AFC
- settings.preamble_length = 10;
-#endif
register_write(EZRADIOPRO_PREAMBLE_LENGTH, settings.preamble_length); // nibbles
register_write(EZRADIOPRO_PREAMBLE_DETECTION_CONTROL, 5<<3); // 5 nibbles

0 comments on commit f10cf9a

Please sign in to comment.