DebugLog level in every header

This commit is contained in:
Emanuele Trabattoni
2025-07-14 11:35:19 +02:00
parent bdf3b9b41a
commit 53b82c32c3
9 changed files with 20 additions and 3 deletions

View File

@@ -1,5 +1,7 @@
#pragma once #pragma once
#define DEBUGLOG_DEFAULT_LOG_LEVEL_INFO
#include <DebugLog.h> #include <DebugLog.h>
#include <Arduino.h> #include <Arduino.h>
#include <Network.h> #include <Network.h>

View File

@@ -1,4 +1,8 @@
#pragma once #pragma once
#define DEBUGLOG_DEFAULT_LOG_LEVEL_INFO
#include <DebugLog.h>
#include "I2C_Driver.h" #include "I2C_Driver.h"
/****************************************************** The macro defines the TCA9554PWR information ******************************************************/ /****************************************************** The macro defines the TCA9554PWR information ******************************************************/

View File

@@ -1,5 +1,7 @@
#pragma once #pragma once
#define DEBUGLOG_DEFAULT_LOG_LEVEL_INFO
#include <DebugLog.h> #include <DebugLog.h>
#include <Arduino.h> #include <Arduino.h>
#include <Wire.h> #include <Wire.h>

View File

@@ -1,6 +1,6 @@
#pragma once #pragma once
// #define DEBUGLOG_DEFAULT_LOG_LEVEL_TRACE #define DEBUGLOG_DEFAULT_LOG_LEVEL_INFO
#include <DebugLog.h> #include <DebugLog.h>
#include <Arduino.h> #include <Arduino.h>

View File

@@ -1,5 +1,8 @@
#pragma once #pragma once
#define DEBUGLOG_DEFAULT_LOG_LEVEL_INFO
#include <DebugLog.h>
#include "I2C_Driver.h" #include "I2C_Driver.h"
#include <string> #include <string>

View File

@@ -3,7 +3,7 @@
namespace drivers namespace drivers
{ {
S50140::S50140(drivers::MODBUS &bus, const uint8_t address) : m_bus(bus), m_address(address) S50140::S50140(drivers::MODBUS &bus, const uint8_t address) : m_bus(bus), m_address(address), m_lastRequest(millis())
{ {
} }
S50140::~S50140() S50140::~S50140()

View File

@@ -1,5 +1,7 @@
#pragma once #pragma once
#define DEBUGLOG_DEFAULT_LOG_LEVEL_INFO
#include <DebugLog.h> #include <DebugLog.h>
#include <RS485_Driver.h> #include <RS485_Driver.h>
@@ -75,6 +77,6 @@ namespace drivers
private: private:
const uint8_t m_address; const uint8_t m_address;
drivers::MODBUS &m_bus; drivers::MODBUS &m_bus;
uint64_t m_lastRequest = 0; uint64_t m_lastRequest;
}; };
} }

View File

@@ -1,5 +1,7 @@
#pragma once #pragma once
#define DEBUGLOG_DEFAULT_LOG_LEVEL_INFO
#include <DebugLog.h> #include <DebugLog.h>
#include <RS485_Driver.h> #include <RS485_Driver.h>

View File

@@ -1,5 +1,7 @@
#pragma once #pragma once
#define DEBUGLOG_DEFAULT_LOG_LEVEL_INFO
#include <Arduino.h> #include <Arduino.h>
#include <DebugLog.h> #include <DebugLog.h>
#include <vector> #include <vector>