mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-13 04:50:35 +08:00
Fix UART formatting
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user