aboutsummaryrefslogtreecommitdiffstats
path: root/src/anetz/anetz.c
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2016-05-05 13:11:15 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2016-05-06 07:05:52 +0200
commitaae58d5a683223658e2a55c0e32f32fd3a9b2fe7 (patch)
treee017803fd85efa13e67e15b8831be862b4e8ed42 /src/anetz/anetz.c
parentb73894ac49e85217322adc73bca53a7c991dc183 (diff)
A-Netz: Calibration of tone levels on TX and RX side
Diffstat (limited to 'src/anetz/anetz.c')
-rw-r--r--src/anetz/anetz.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/anetz/anetz.c b/src/anetz/anetz.c
index f41a5ce..8c1384a 100644
--- a/src/anetz/anetz.c
+++ b/src/anetz/anetz.c
@@ -248,9 +248,13 @@ void anetz_receive_tone(anetz_t *anetz, int tone)
else
PDEBUG(DANETZ, DEBUG_DEBUG, "Continuous tone is gone.\n");
- if (anetz->sender.loopback) {
+ /* skip any handling in loopback mode */
+ if (anetz->sender.loopback)
+ return;
+
+ /* skip tone 2280 Hz, because it is not relevant for base station */
+ if (tone == 0)
return;
- }
switch (anetz->state) {
case ANETZ_FREI: