sdlog2: BATT message bug fixed

This commit is contained in:
Anton Babushkin 2013-11-10 00:06:00 +04:00
parent 2761ea4adc
commit 75c57010d6
1 changed files with 1 additions and 0 deletions

View File

@ -1261,6 +1261,7 @@ int sdlog2_thread_main(int argc, char *argv[])
/* --- BATTERY --- */
if (fds[ifds++].revents & POLLIN) {
orb_copy(ORB_ID(battery_status), subs.battery_sub, &buf.battery);
log_msg.msg_type = LOG_BATT_MSG;
log_msg.body.log_BATT.voltage = buf.battery.voltage_v;
log_msg.body.log_BATT.current = buf.battery.current_a;