Merge pull request #14315 from SteWers/Solax-X1-RTS-Fix1

[Solax X1] Resolve RTS-timing problem
This commit is contained in:
Theo Arends 2022-01-07 13:09:59 +01:00 committed by GitHub
commit ab01d479ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -162,6 +162,7 @@ void solaxX1_RS485Send(uint16_t msgLen)
solaxX1Serial->write(message, msgLen);
solaxX1Serial->write(highByte(crc));
solaxX1Serial->write(lowByte(crc));
solaxX1Serial->flush();
if (PinUsed(GPIO_SOLAXX1_RTS)) {
digitalWrite(Pin(GPIO_SOLAXX1_RTS), LOW);
}