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,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