mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 13:15:32 +08:00
Turn off logging
This commit is contained in:
@@ -258,12 +258,12 @@ PX4IO_Uploader::recv(uint8_t &c, unsigned timeout)
|
|||||||
int ret = ::poll(&fds[0], 1, timeout);
|
int ret = ::poll(&fds[0], 1, timeout);
|
||||||
|
|
||||||
if (ret < 1) {
|
if (ret < 1) {
|
||||||
log("poll timeout %d", ret);
|
//log("poll timeout %d", ret);
|
||||||
return -ETIMEDOUT;
|
return -ETIMEDOUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
read(_io_fd, &c, 1);
|
read(_io_fd, &c, 1);
|
||||||
log("recv 0x%02x", c);
|
//log("recv 0x%02x", c);
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -290,7 +290,7 @@ PX4IO_Uploader::drain()
|
|||||||
ret = recv(c, 1000);
|
ret = recv(c, 1000);
|
||||||
|
|
||||||
if (ret == OK) {
|
if (ret == OK) {
|
||||||
log("discard 0x%02x", c);
|
//log("discard 0x%02x", c);
|
||||||
}
|
}
|
||||||
} while (ret == OK);
|
} while (ret == OK);
|
||||||
}
|
}
|
||||||
@@ -298,7 +298,7 @@ PX4IO_Uploader::drain()
|
|||||||
int
|
int
|
||||||
PX4IO_Uploader::send(uint8_t c)
|
PX4IO_Uploader::send(uint8_t c)
|
||||||
{
|
{
|
||||||
log("send 0x%02x", c);
|
//log("send 0x%02x", c);
|
||||||
if (write(_io_fd, &c, 1) != 1)
|
if (write(_io_fd, &c, 1) != 1)
|
||||||
return -errno;
|
return -errno;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user