Check for transmit errors.

This commit is contained in:
px4dev
2012-11-03 01:14:24 -07:00
parent e36bd4b243
commit 5af84e3b11
+4 -1
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