mbed library sources modified for open wear
Dependents: openwear-lifelogger-example
Fork of mbed-src by
Diff: targets/hal/TARGET_NXP/TARGET_LPC176X/can_api.c
- Revision:
- 19:398f4c622e1b
- Parent:
- 15:4892fe388435
- Child:
- 20:4263a77256ae
--- a/targets/hal/TARGET_NXP/TARGET_LPC176X/can_api.c Mon Aug 12 13:49:01 2013 +0300 +++ b/targets/hal/TARGET_NXP/TARGET_LPC176X/can_api.c Mon Aug 19 18:17:02 2013 +0300 @@ -164,7 +164,7 @@ obj->dev->MOD &= ~(1); // Enable NVIC if at least 1 interrupt is active - if(LPC_CAN1->IER | LPC_CAN2->IER != 0) { + if(LPC_CAN1->IER | LPC_CAN2->IER) { NVIC_SetVector(CAN_IRQn, (uint32_t) &can_irq_n); NVIC_EnableIRQ(CAN_IRQn); }