enable logging of the RC RSSI value

This commit is contained in:
Bartosz Wawrzacz
2015-11-12 15:38:43 +01:00
parent de39e7de62
commit e8c7ee7ff2
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -1675,6 +1675,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.channels, sizeof(log_msg.body.log_RC.channel));
log_msg.body.log_RC.rssi = buf.rc.rssi;
log_msg.body.log_RC.channel_count = buf.rc.channel_count;
log_msg.body.log_RC.signal_lost = buf.rc.signal_lost;
LOGBUFFER_WRITE_AND_COUNT(RC);