Added channel count to log format

This commit is contained in:
Lorenz Meier
2013-12-23 18:44:07 +01:00
parent 0f0546f1b5
commit 64ad3d7e0a
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -1193,6 +1193,7 @@ int sdlog2_thread_main(int argc, char *argv[])
log_msg.msg_type = LOG_RC_MSG;
/* Copy only the first 8 channels of 14 */
memcpy(log_msg.body.log_RC.channel, buf.rc.chan, sizeof(log_msg.body.log_RC.channel));
log_msg.body.log_RC.channel_count = buf.rc.chan_count;
LOGBUFFER_WRITE_AND_COUNT(RC);
}