Check for transmit errors.

This commit is contained in:
px4dev 2012-11-02 22:46:52 -07:00
parent e36bd4b243
commit 5af84e3b11
1 changed files with 4 additions and 1 deletions

View File

@ -425,6 +425,7 @@ void
PX4IO::io_send()
{
px4io_command cmd;
int ret;
cmd.f2i_magic = F2I_MAGIC;
@ -439,7 +440,9 @@ PX4IO::io_send()
cmd.arm_ok = _armed.armed;
hx_stream_send(_io_stream, &cmd, sizeof(cmd));
ret = hx_stream_send(_io_stream, &cmd, sizeof(cmd));
if (ret)
debug("send error %d", ret);
}
int