[Bug 711] New: [RTCANController] Unable to add CANBusInterface

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=711

Summary: [RTCANController] Unable to add CANBusInterface
Product: OCL
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: Hardware
AssignedTo: orocos-dev [..] ...
ReportedBy: steven [dot] kauffmann [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

Created an attachment (id=513)
--> (https://www.fmtc.be/bugzilla/orocos/attachment.cgi?id=513)
addCANbus fix

The addBus function in RTCANController checks the wrong variable for a null
pointer. It checks the member variable which is initialized as NULL and not the
function argument. Because of this adding a CANBus into the CANBusController
will always fail. The addBus function in the SocketCANController doesn't even
check for null pointers. Patch solves both problems.