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:
parent
c249ce2a58
commit
199a306d27
|
@ -1165,7 +1165,7 @@ bool Transceiver::driveReceiveFIFO(size_t chan)
|
||||||
return false; /* other errors: we want to stop the process */
|
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);
|
logRxBurst(chan, &bi);
|
||||||
|
|
||||||
switch (mVersionTRXD[chan]) {
|
switch (mVersionTRXD[chan]) {
|
||||||
|
|
Loading…
Reference in New Issue