init VDev for mavlink log device

This commit is contained in:
tumbili 2015-06-22 09:41:05 +02:00
parent dd9e3cd315
commit 80f1c517cc
1 changed files with 5 additions and 1 deletions

View File

@ -1528,7 +1528,11 @@ Mavlink::task_main(int argc, char *argv[])
#ifdef __PX4_NUTTX
register_driver(MAVLINK_LOG_DEVICE, &fops, 0666, NULL);
#else
register_driver(MAVLINK_LOG_DEVICE, NULL);
int ret;
ret = VDev::init();
if (ret != OK) {
PX4_WARN("VDev setup for mavlink log device failed!\n");
}
#endif
/* initialize logging device */