Catching up with STM32 driver optimizations in libuavcan

This commit is contained in:
Pavel Kirienko 2014-05-09 02:18:45 +04:00
parent c697aae17a
commit 5a90582567
1 changed files with 3 additions and 3 deletions

View File

@ -224,10 +224,10 @@ int UavcanNode::run()
actuator_outputs_s outputs;
memset(&outputs, 0, sizeof(outputs));
const int busevent_fd = ::open(uavcan_stm32::Event::DevName, 0);
const int busevent_fd = ::open(uavcan_stm32::BusEvent::DevName, 0);
if (busevent_fd < 0)
{
warnx("Failed to open %s", uavcan_stm32::Event::DevName);
warnx("Failed to open %s", uavcan_stm32::BusEvent::DevName);
_task_should_exit = true;
}
@ -252,7 +252,7 @@ int UavcanNode::run()
*/
_poll_fds[_poll_fds_num] = ::pollfd();
_poll_fds[_poll_fds_num].fd = busevent_fd;
_poll_fds[_poll_fds_num].events = POLLIN | POLLOUT;
_poll_fds[_poll_fds_num].events = POLLIN;
_poll_fds_num += 1;
}