indent fixed

This commit is contained in:
Wolfgang Hottgenroth 2019-06-18 19:08:35 +02:00
parent d19bc80783
commit eee1db510c
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F
2 changed files with 8 additions and 7 deletions

View File

@ -143,15 +143,15 @@ Derived class from `RS485` in `pyserial` (maybe this can be switched to the regu
C code of the function `writec` in the library `writec`:
ssize_t writec(int fd, char *buf, size_t count) {
digitalWrite(DE_PIN, HIGH);
ssize_t r = write(fd, buf, count);
uint8_t lsr;
do {
digitalWrite(DE_PIN, HIGH);
ssize_t r = write(fd, buf, count);
uint8_t lsr;
do {
int r = ioctl(fd, TIOCSERGETLSR, &lsr);
} while (!(lsr & TIOCSER_TEMT));
digitalWrite(DE_PIN, LOW);
} while (!(lsr & TIOCSER_TEMT));
digitalWrite(DE_PIN, LOW);
return r;
return r;
}
This change brought the break through:

1
rpirtscts Submodule

@ -0,0 +1 @@
Subproject commit 612b065e3832888d024e2bbd6d48c381a42bfbba