summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/layer1/toa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/firmware/layer1/toa.c')
-rw-r--r--src/target/firmware/layer1/toa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/firmware/layer1/toa.c b/src/target/firmware/layer1/toa.c
index 7d80d952..16f99d5e 100644
--- a/src/target/firmware/layer1/toa.c
+++ b/src/target/firmware/layer1/toa.c
@@ -75,6 +75,6 @@ static void toa_ravg_output(struct running_avg *ravg, int32_t avg)
{
if (avg != 16) {
printf("TOA AVG is not 16 qbits, correcting (got %ld)\n", avg);
- l1s.tpu_offset_correction = avg - 16;
+ l1s.tpu_offset_correction += avg - 16;
}
}