lpc11c24 driver -Wundef fixes

This commit is contained in:
Pavel Kirienko
2015-01-10 01:22:55 +03:00
parent 6ea66c045c
commit 53ee643480
2 changed files with 2 additions and 2 deletions
@@ -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.