Fix UART formatting

This commit is contained in:
Lorenz Meier
2016-03-10 19:18:24 +01:00
parent 030b544dd7
commit ceeedd739f
+3 -1
View File
@@ -304,9 +304,11 @@ void handleRC(int uart_fd, struct input_rc_s *rc)
{
// read uart until we get the magic number
char buf[10];
while(true) {
while (true) {
int ret = ::read(uart_fd, &buf, sizeof(buf));
PX4_ERR("got %d", ret);
if (ret < 1) {
break;
}