Skip to content

Commit 5ca2584

Browse files
committed
Template config: tune buffer sizes for faster mode switch
1 parent f012d27 commit 5ca2584

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/config.h.template

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@
4343
#define ANT_POWER_TX 0
4444

4545
/* Number of repeated TX values before a switch to RX occurs */
46-
#define MAX_DC_BYTES_TX ((1L<<18) * 14 / 10)
46+
#define MAX_DC_BYTES_TX ((1L<<11) * 14 / 10)
4747

4848
/* Max. iterations of DC check loop. This is used to drain the input fifo */
49-
#define DC_CHECK_MAX_LOOPS 128
49+
#define DC_CHECK_MAX_LOOPS 2048
5050

5151
/* Tolerance for DC values (keep this small!) */
5252
#define DC_CHECK_TOLERANCE 1
5353

5454
/* Number of bytes to read during a DC check loop */
55-
#define DC_CHECK_BUFFER_LEN (1<<18)
55+
#define DC_CHECK_BUFFER_LEN (1<<12)
5656

5757
#define FREQ_OFFSET_PPM (0)
5858

0 commit comments

Comments
 (0)