mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-28 21:37:50 +02:00
Switched to a custom logging lib instead of that spdlog junk
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
#include "hermes.h"
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <utils/flog.h>
|
||||
|
||||
namespace hermes {
|
||||
Client::Client(std::shared_ptr<net::Socket> sock) {
|
||||
@ -71,7 +71,7 @@ namespace hermes {
|
||||
if (filt != lastFilt) {
|
||||
lastFilt = filt;
|
||||
|
||||
spdlog::warn("Setting filters");
|
||||
flog::warn("Setting filters");
|
||||
|
||||
// Set direction and wait for things to be processed
|
||||
writeI2C(I2C_PORT_2, 0x20, 0x00, 0x00);
|
||||
@ -180,7 +180,7 @@ namespace hermes {
|
||||
// Check if this is a response
|
||||
if (hdr->c0 & (1 << 7)) {
|
||||
uint8_t reg = (hdr->c0 >> 1) & 0x3F;
|
||||
spdlog::warn("Got response! Reg={0}, Seq={1}", reg, htonl(pkt->seq));
|
||||
flog::warn("Got response! Reg={0}, Seq={1}", reg, (uint32_t)htonl(pkt->seq));
|
||||
}
|
||||
|
||||
// Decode and send IQ to stream
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "hermes.h"
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <utils/flog.h>
|
||||
#include <module.h>
|
||||
#include <gui/gui.h>
|
||||
#include <signal_path/signal_path.h>
|
||||
@ -138,12 +138,12 @@ private:
|
||||
}
|
||||
|
||||
core::setInputSampleRate(_this->sampleRate);
|
||||
spdlog::info("HermesSourceModule '{0}': Menu Select!", _this->name);
|
||||
flog::info("HermesSourceModule '{0}': Menu Select!", _this->name);
|
||||
}
|
||||
|
||||
static void menuDeselected(void* ctx) {
|
||||
HermesSourceModule* _this = (HermesSourceModule*)ctx;
|
||||
spdlog::info("HermesSourceModule '{0}': Menu Deselect!", _this->name);
|
||||
flog::info("HermesSourceModule '{0}': Menu Deselect!", _this->name);
|
||||
}
|
||||
|
||||
static void start(void* ctx) {
|
||||
@ -164,7 +164,7 @@ private:
|
||||
_this->dev->setGain(_this->gain);
|
||||
|
||||
_this->running = true;
|
||||
spdlog::info("HermesSourceModule '{0}': Start!", _this->name);
|
||||
flog::info("HermesSourceModule '{0}': Start!", _this->name);
|
||||
}
|
||||
|
||||
static void stop(void* ctx) {
|
||||
@ -177,7 +177,7 @@ private:
|
||||
_this->dev->close();
|
||||
_this->lnk.stop();
|
||||
|
||||
spdlog::info("HermesSourceModule '{0}': Stop!", _this->name);
|
||||
flog::info("HermesSourceModule '{0}': Stop!", _this->name);
|
||||
}
|
||||
|
||||
static void tune(double freq, void* ctx) {
|
||||
@ -187,7 +187,7 @@ private:
|
||||
_this->dev->setFrequency(freq);
|
||||
}
|
||||
_this->freq = freq;
|
||||
spdlog::info("HermesSourceModule '{0}': Tune: {1}!", _this->name, freq);
|
||||
flog::info("HermesSourceModule '{0}': Tune: {1}!", _this->name, freq);
|
||||
}
|
||||
|
||||
static void menuHandler(void* ctx) {
|
||||
|
Reference in New Issue
Block a user