Removed some debug

This commit is contained in:
Gunnar Skjold 2024-03-20 19:30:38 +01:00
parent 14eb27e0d9
commit b8ac1a9565
2 changed files with 0 additions and 5 deletions

View File

@ -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;

View File

@ -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;
}