From 140a2076d9732110f4221b4fde5a4fa8344ee70d Mon Sep 17 00:00:00 2001 From: Alexander Chemeris Date: Fri, 25 Mar 2016 18:20:28 +0300 Subject: transceiver: Log channel number in DEBUG output of demoded bursts. --- Transceiver52M/Transceiver.cpp | 5 +++-- Transceiver52M/Transceiver.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp index a1c6f1b..18e2927 100644 --- a/Transceiver52M/Transceiver.cpp +++ b/Transceiver52M/Transceiver.cpp @@ -901,10 +901,11 @@ void Transceiver::driveReceiveRadio() } } -void Transceiver::logRxBurst(SoftVector *burst, GSM::Time time, double dbm, +void Transceiver::logRxBurst(size_t chan, SoftVector *burst, GSM::Time time, double dbm, double rssi, double noise, double toa) { LOG(DEBUG) << std::fixed << std::right + << " chan: " << chan << " time: " << time << " RSSI: " << std::setw(5) << std::setprecision(1) << rssi << "dBFS/" << std::setw(6) << -dbm << "dBm" @@ -937,7 +938,7 @@ void Transceiver::driveReceiveFIFO(size_t chan) nbits = gSlotLen * 3; dBm = RSSI + rssiOffset; - logRxBurst(rxBurst, burstTime, dBm, RSSI, noise, TOA); + logRxBurst(chan, rxBurst, burstTime, dBm, RSSI, noise, TOA); TOAint = (int) (TOA * 256.0 + 0.5); // round to closest integer diff --git a/Transceiver52M/Transceiver.h b/Transceiver52M/Transceiver.h index 79b487a..b53a8b1 100644 --- a/Transceiver52M/Transceiver.h +++ b/Transceiver52M/Transceiver.h @@ -274,7 +274,7 @@ protected: /** set priority on current thread */ void setPriority(float prio = 0.5) { mRadioInterface->setPriority(prio); } - void logRxBurst(SoftVector *burst, GSM::Time time, double dbm, + void logRxBurst(size_t chan, SoftVector *burst, GSM::Time time, double dbm, double rssi, double noise, double toa); }; -- cgit v1.2.3