Transceiver: Check log level before generating burst str representation

Avoid entering the logRxBurst() function and running a long loop even if
not used.

Change-Id: I67408bc8643d5d97355f277c4a2007064a83ae90
This commit is contained in:
Pau Espin 2020-07-27 10:58:51 +02:00
parent c249ce2a58
commit 199a306d27
1 changed files with 1 additions and 1 deletions

View File

@ -1165,7 +1165,7 @@ bool Transceiver::driveReceiveFIFO(size_t chan)
return false; /* other errors: we want to stop the process */
}
if (!bi.idle)
if (!bi.idle && log_check_level(DTRXDUL, LOGL_DEBUG))
logRxBurst(chan, &bi);
switch (mVersionTRXD[chan]) {