aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-02-17 13:52:17 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-02-17 13:52:17 +0000
commit51deb0fa262ce7b5519cdef88717312419022480 (patch)
tree8dcd910089b24d2914e376c837465b1085ce2403 /os
parent086b5de61ef3cd9889a3d996a2f68624805cf61f (diff)
downloadChibiOS-51deb0fa262ce7b5519cdef88717312419022480.tar.gz
ChibiOS-51deb0fa262ce7b5519cdef88717312419022480.tar.bz2
ChibiOS-51deb0fa262ce7b5519cdef88717312419022480.zip
Fixed bug 3604657.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5222 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/hal/platforms/STM32/can_lld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32/can_lld.c b/os/hal/platforms/STM32/can_lld.c
index 75de38353..6c12cc145 100644
--- a/os/hal/platforms/STM32/can_lld.c
+++ b/os/hal/platforms/STM32/can_lld.c
@@ -217,7 +217,7 @@ static void can_lld_sce_handler(CANDriver *canp) {
chSysLockFromIsr();
/* The content of the ESR register is copied unchanged in the upper
half word of the listener flags mask.*/
- chEvtBroadcastFlagsI(&canp->error_event, flags | (flagsmask_t)(esr < 16));
+ chEvtBroadcastFlagsI(&canp->error_event, flags | (flagsmask_t)(esr << 16));
chSysUnlockFromIsr();
}
}