mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 09:53:33 +08:00
LPC11C24: Consistent use of nullptr
This commit is contained in:
@@ -179,11 +179,11 @@ int CanDriver::init(uavcan::uint32_t bitrate)
|
|||||||
canRxCallback,
|
canRxCallback,
|
||||||
canTxCallback,
|
canTxCallback,
|
||||||
canErrorCallback,
|
canErrorCallback,
|
||||||
0,
|
nullptr,
|
||||||
0,
|
nullptr,
|
||||||
0,
|
nullptr,
|
||||||
0,
|
nullptr,
|
||||||
0
|
nullptr
|
||||||
};
|
};
|
||||||
LPC_CCAN_API->config_calb(&ccan_callbacks);
|
LPC_CCAN_API->config_calb(&ccan_callbacks);
|
||||||
NVIC_EnableIRQ(CAN_IRQn);
|
NVIC_EnableIRQ(CAN_IRQn);
|
||||||
@@ -340,7 +340,7 @@ uavcan::uint16_t CanDriver::getNumFilters() const
|
|||||||
|
|
||||||
uavcan::ICanIface* CanDriver::getIface(uavcan::uint8_t iface_index)
|
uavcan::ICanIface* CanDriver::getIface(uavcan::uint8_t iface_index)
|
||||||
{
|
{
|
||||||
return (iface_index == 0) ? this : NULL;
|
return (iface_index == 0) ? this : nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
uavcan::uint8_t CanDriver::getNumIfaces() const
|
uavcan::uint8_t CanDriver::getNumIfaces() const
|
||||||
|
|||||||
Reference in New Issue
Block a user