From b8ac1a95654a7f29f8ab18d2e2760c8f4c26a245 Mon Sep 17 00:00:00 2001 From: Gunnar Skjold Date: Wed, 20 Mar 2024 19:30:38 +0100 Subject: [PATCH] Removed some debug --- lib/ConnectionHandler/src/EthernetConnectionHandler.cpp | 3 --- src/PulseMeterCommunicator.cpp | 2 -- 2 files changed, 5 deletions(-) diff --git a/lib/ConnectionHandler/src/EthernetConnectionHandler.cpp b/lib/ConnectionHandler/src/EthernetConnectionHandler.cpp index 915a28fc..b22442da 100644 --- a/lib/ConnectionHandler/src/EthernetConnectionHandler.cpp +++ b/lib/ConnectionHandler/src/EthernetConnectionHandler.cpp @@ -33,7 +33,6 @@ bool EthernetConnectionHandler::connect(NetworkConfig config, SystemConfig sys) uint8_t ethMdio = 0; if(sys.boardType == 241) { - if (debugger->isActive(RemoteDebug::DEBUG)) debugger->printf_P(PSTR("LilyGO T-ETH-POE\n")); ethType = ETH_PHY_LAN8720; ethEnablePin = -1; ethAddr = 0; @@ -42,7 +41,6 @@ bool EthernetConnectionHandler::connect(NetworkConfig config, SystemConfig sys) ethMdc = 23; ethMdio = 18; } else if(sys.boardType == 242) { - if (debugger->isActive(RemoteDebug::DEBUG)) debugger->printf_P(PSTR("M5 PoESP32\n")); ethType = ETH_PHY_IP101; ethEnablePin = -1; ethAddr = 1; @@ -51,7 +49,6 @@ bool EthernetConnectionHandler::connect(NetworkConfig config, SystemConfig sys) ethMdc = 23; ethMdio = 18; } else if(sys.boardType == 243) { - if (debugger->isActive(RemoteDebug::DEBUG)) debugger->printf_P(PSTR("WT32-ETH01\n")); ethType = ETH_PHY_LAN8720; ethEnablePin = -1; ethAddr = 1; diff --git a/src/PulseMeterCommunicator.cpp b/src/PulseMeterCommunicator.cpp index ac3dff02..5225570d 100644 --- a/src/PulseMeterCommunicator.cpp +++ b/src/PulseMeterCommunicator.cpp @@ -18,7 +18,6 @@ bool PulseMeterCommunicator::loop() { AmsData* PulseMeterCommunicator::getData(AmsData& meterState) { if(!initialized) { - if(debugger->isActive(RemoteDebug::INFO)) debugger->printf_P(PSTR("Initializing pulse meter state\n")); state.apply(meterState); initialized = true; return NULL; @@ -65,7 +64,6 @@ void PulseMeterCommunicator::onPulse(uint8_t pulses) { return; } if(!initialized) { - if(debugger->isActive(RemoteDebug::WARNING)) debugger->printf_P(PSTR("Pulse communicator not initialized\n")); return; }