Pioarduino preparation (#9223)

* Resolve naming conflict of Syslog class with namespace

* do not include libpax headers if pax counter is excluded

* clean only top-level sdkconfigs, keep them in the variants directories

* Fix code formatting
This commit is contained in:
Martin Emrich
2026-01-12 09:52:39 -06:00
committed by GitHub
parent f4d7dab4ca
commit 986d70db6a
7 changed files with 15 additions and 8 deletions
+1 -1
View File
@@ -48,5 +48,5 @@ arduino-lib-builder*
dependencies.lock dependencies.lock
idf_component.yml idf_component.yml
CMakeLists.txt CMakeLists.txt
sdkconfig.* /sdkconfig.*
.dummy/* .dummy/*
+4 -1
View File
@@ -41,7 +41,8 @@ extern "C" void logLegacy(const char *level, const char *fmt, ...)
} }
#if HAS_NETWORKING #if HAS_NETWORKING
namespace meshtastic
{
Syslog::Syslog(UDP &client) Syslog::Syslog(UDP &client)
{ {
this->_client = &client; this->_client = &client;
@@ -195,4 +196,6 @@ inline bool Syslog::_sendLog(uint16_t pri, const char *appName, const char *mess
return true; return true;
} }
}; // namespace meshtastic
#endif #endif
+5 -1
View File
@@ -162,6 +162,8 @@ extern "C" void logLegacy(const char *level, const char *fmt, ...);
#if HAS_NETWORKING #if HAS_NETWORKING
namespace meshtastic
{
class Syslog class Syslog
{ {
private: private:
@@ -195,4 +197,6 @@ class Syslog
bool vlogf(uint16_t pri, const char *appName, const char *fmt, va_list args) __attribute__((format(printf, 3, 0))); bool vlogf(uint16_t pri, const char *appName, const char *fmt, va_list args) __attribute__((format(printf, 3, 0)));
}; };
#endif // HAS_NETWORKING }; // namespace meshtastic
#endif // HAS_NETWORKING
+1 -1
View File
@@ -18,7 +18,7 @@
#endif #endif
#if HAS_NETWORKING #if HAS_NETWORKING
extern Syslog syslog; extern meshtastic::Syslog syslog;
#endif #endif
void RedirectablePrint::rpInit() void RedirectablePrint::rpInit()
{ {
+1 -1
View File
@@ -21,7 +21,7 @@ uint32_t ntp_renew = 0;
#endif #endif
EthernetUDP syslogClient; EthernetUDP syslogClient;
Syslog syslog(syslogClient); meshtastic::Syslog syslog(syslogClient);
bool ethStartupComplete = 0; bool ethStartupComplete = 0;
+1 -1
View File
@@ -58,7 +58,7 @@ bool needReconnect = true; // If we create our reconnector, run it once at the
bool isReconnecting = false; // If we are currently reconnecting bool isReconnecting = false; // If we are currently reconnecting
WiFiUDP syslogClient; WiFiUDP syslogClient;
Syslog syslog(syslogClient); meshtastic::Syslog syslog(syslogClient);
Periodic *wifiReconnect; Periodic *wifiReconnect;
+2 -2
View File
@@ -2,7 +2,7 @@
#include "ProtobufModule.h" #include "ProtobufModule.h"
#include "configuration.h" #include "configuration.h"
#if defined(ARCH_ESP32) #if defined(ARCH_ESP32) && !MESHTASTIC_EXCLUDE_PAXCOUNTER
#include "../mesh/generated/meshtastic/paxcount.pb.h" #include "../mesh/generated/meshtastic/paxcount.pb.h"
#include "NodeDB.h" #include "NodeDB.h"
#include <libpax_api.h> #include <libpax_api.h>
@@ -35,4 +35,4 @@ class PaxcounterModule : private concurrency::OSThread, public ProtobufModule<me
}; };
extern PaxcounterModule *paxcounterModule; extern PaxcounterModule *paxcounterModule;
#endif #endif