diff --git a/readme.md b/readme.md index 57bdc87..16dfc2a 100644 --- a/readme.md +++ b/readme.md @@ -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: diff --git a/rpirtscts b/rpirtscts new file mode 160000 index 0000000..612b065 --- /dev/null +++ b/rpirtscts @@ -0,0 +1 @@ +Subproject commit 612b065e3832888d024e2bbd6d48c381a42bfbba