Fixed 8266 build

This commit is contained in:
Gunnar Skjold 2024-03-18 17:05:09 +01:00
parent d85da6c9cb
commit 2087c287bf

View File

@ -544,10 +544,10 @@ void PassiveMeterCommunicator::setupHanPort(uint32_t baud, uint8_t parityOrdinal
#endif
#if defined(ESP8266)
if(pin == 3) {
if(rxpin == 3) {
if(debugger->isActive(RemoteDebug::INFO)) debugger->printf_P(PSTR("Switching UART0 to pin 1 & 3\n"));
Serial.pins(1,3);
} else if(pin == 113) {
} else if(rxpin == 113) {
if(debugger->isActive(RemoteDebug::INFO)) debugger->printf_P(PSTR("Switching UART0 to pin 15 & 13\n"));
Serial.pins(15,13);
}
@ -565,7 +565,7 @@ void PassiveMeterCommunicator::setupHanPort(uint32_t baud, uint8_t parityOrdinal
pinMode(17, INPUT);
}
#elif defined(ESP8266)
if(pin == 113) {
if(rxpin == 113) {
pinMode(15, INPUT);
}
#endif