A-Netz: Calibration of tone levels on TX and RX side

This commit is contained in:
Andreas Eversberg
2016-05-05 13:11:15 +02:00
parent b73894ac49
commit aae58d5a68
3 changed files with 58 additions and 32 deletions

View File

@@ -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: