forked from Archive/PX4-Autopilot
Added assertion, fixed formatting.
This commit is contained in:
parent
69f6fe51bc
commit
e02791ee8e
|
@ -584,6 +584,7 @@ receive_thread(void *arg)
|
|||
if (poll(fds, 1, timeout) > 0) {
|
||||
/* non-blocking read */
|
||||
size_t nread = read(uart_fd, buf, sizeof(buf));
|
||||
ASSERT(nread > 0)
|
||||
|
||||
for (size_t i = 0; i < nread; i++) {
|
||||
if (mavlink_parse_char(chan, buf[i], &msg, &status)) { //parse the char
|
||||
|
|
Loading…
Reference in New Issue