mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +00:00
Add uart info
This commit is contained in:
parent
9b64c4eb4c
commit
50b0a983b2
@ -189,6 +189,9 @@ void SerialBridgeInit(void) {
|
|||||||
}
|
}
|
||||||
SerialBridgeSerial->flush();
|
SerialBridgeSerial->flush();
|
||||||
SerialBridgePrintf("\r\n");
|
SerialBridgePrintf("\r\n");
|
||||||
|
#ifdef ESP32
|
||||||
|
AddLog(LOG_LEVEL_DEBUG, PSTR("SBR: Serial UART%d"), SerialBridgeSerial->getUart());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -399,6 +399,9 @@ void TasmotaClient_Init(void) {
|
|||||||
if (TasmotaClient_Serial->hardwareSerial()) {
|
if (TasmotaClient_Serial->hardwareSerial()) {
|
||||||
ClaimSerial();
|
ClaimSerial();
|
||||||
}
|
}
|
||||||
|
#ifdef ESP32
|
||||||
|
AddLog(LOG_LEVEL_DEBUG, PSTR("TCL: Serial UART%d"), TasmotaClient_Serial->getUart());
|
||||||
|
#endif
|
||||||
if (PinUsed(GPIO_TASMOTACLIENT_RST_INV)) {
|
if (PinUsed(GPIO_TASMOTACLIENT_RST_INV)) {
|
||||||
SetPin(Pin(GPIO_TASMOTACLIENT_RST_INV), AGPIO(GPIO_TASMOTACLIENT_RST));
|
SetPin(Pin(GPIO_TASMOTACLIENT_RST_INV), AGPIO(GPIO_TASMOTACLIENT_RST));
|
||||||
TClient.inverted = HIGH;
|
TClient.inverted = HIGH;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user