indent fixed
This commit is contained in:
parent
d19bc80783
commit
eee1db510c
14
readme.md
14
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`:
|
C code of the function `writec` in the library `writec`:
|
||||||
|
|
||||||
ssize_t writec(int fd, char *buf, size_t count) {
|
ssize_t writec(int fd, char *buf, size_t count) {
|
||||||
digitalWrite(DE_PIN, HIGH);
|
digitalWrite(DE_PIN, HIGH);
|
||||||
ssize_t r = write(fd, buf, count);
|
ssize_t r = write(fd, buf, count);
|
||||||
uint8_t lsr;
|
uint8_t lsr;
|
||||||
do {
|
do {
|
||||||
int r = ioctl(fd, TIOCSERGETLSR, &lsr);
|
int r = ioctl(fd, TIOCSERGETLSR, &lsr);
|
||||||
} while (!(lsr & TIOCSER_TEMT));
|
} while (!(lsr & TIOCSER_TEMT));
|
||||||
digitalWrite(DE_PIN, LOW);
|
digitalWrite(DE_PIN, LOW);
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
This change brought the break through:
|
This change brought the break through:
|
||||||
|
1
rpirtscts
Submodule
1
rpirtscts
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 612b065e3832888d024e2bbd6d48c381a42bfbba
|
Loading…
x
Reference in New Issue
Block a user