Switched to a custom logging lib instead of that spdlog junk

This commit is contained in:
AlexandreRouma
2023-02-25 18:12:34 +01:00
parent 7e80bbd02c
commit 7723d15e8f
154 changed files with 723 additions and 19918 deletions

View File

@ -1,4 +1,4 @@
#include <spdlog/spdlog.h>
#include <utils/flog.h>
#include <module.h>
#include <gui/gui.h>
#include <signal_path/signal_path.h>
@ -298,7 +298,7 @@ private:
int getBestBandwidth(int sampleRate) {
for (int i = 0; i < bandwidths.size(); i++) {
if (bandwidths[i] >= sampleRate) {
spdlog::warn("Selected bandwidth is {0}", bandwidths[i]);
flog::warn("Selected bandwidth is {0}", bandwidths[i]);
return bandwidths[i];
}
}
@ -308,12 +308,12 @@ private:
static void menuSelected(void* ctx) {
LimeSDRSourceModule* _this = (LimeSDRSourceModule*)ctx;
core::setInputSampleRate(_this->sampleRate);
spdlog::info("LimeSDRSourceModule '{0}': Menu Select!", _this->name);
flog::info("LimeSDRSourceModule '{0}': Menu Select!", _this->name);
}
static void menuDeselected(void* ctx) {
LimeSDRSourceModule* _this = (LimeSDRSourceModule*)ctx;
spdlog::info("LimeSDRSourceModule '{0}': Menu Deselect!", _this->name);
flog::info("LimeSDRSourceModule '{0}': Menu Deselect!", _this->name);
}
static void start(void* ctx) {
@ -332,7 +332,7 @@ private:
LMS_Init(_this->openDev);
}
spdlog::warn("Channel count: {0}", LMS_GetNumChannels(_this->openDev, false));
flog::warn("Channel count: {0}", LMS_GetNumChannels(_this->openDev, false));
// Set options
LMS_EnableChannel(_this->openDev, false, _this->chanId, true);
@ -359,7 +359,7 @@ private:
_this->running = true;
spdlog::info("LimeSDRSourceModule '{0}': Start!", _this->name);
flog::info("LimeSDRSourceModule '{0}': Start!", _this->name);
}
static void stop(void* ctx) {
@ -376,7 +376,7 @@ private:
LMS_Close(_this->openDev);
spdlog::info("LimeSDRSourceModule '{0}': Stop!", _this->name);
flog::info("LimeSDRSourceModule '{0}': Stop!", _this->name);
}
static void tune(double freq, void* ctx) {
@ -385,7 +385,7 @@ private:
if (_this->running) {
LMS_SetLOFrequency(_this->openDev, false, _this->chanId, freq);
}
spdlog::info("LimeSDRSourceModule '{0}': Tune: {1}!", _this->name, freq);
flog::info("LimeSDRSourceModule '{0}': Tune: {1}!", _this->name, freq);
}
static void menuHandler(void* ctx) {