mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 04:53:33 +08:00
lpc11c24 driver -Wundef fixes
This commit is contained in:
@@ -298,7 +298,7 @@ uavcan::int16_t CanDriver::select(uavcan::CanSelectMasks& inout_masks, uavcan::M
|
||||
|
||||
if (!noblock && (clock::getMonotonic() > blocking_deadline))
|
||||
{
|
||||
#if UAVCAN_LPC11C24_USE_WFE
|
||||
#if defined(UAVCAN_LPC11C24_USE_WFE) && UAVCAN_LPC11C24_USE_WFE
|
||||
/*
|
||||
* It's not cool (literally) to burn cycles in a busyloop, and we have no OS to pass control to other
|
||||
* tasks, thus solution is to halt the core until a hardware event occurs - e.g. clock timer overflow.
|
||||
|
||||
Reference in New Issue
Block a user