FIXED: - Renamed macro for peak win32 driver, patch from mailinglist (post from Christian Boepple, 2010-09-08 14:38)
authorChristian Taedcke
Wed, 10 Nov 2010 14:19:31 +0100
changeset 650 58b07a7e695b
parent 649 3beb784bacee
child 651 2a36570aa68c
FIXED: - Renamed macro for peak win32 driver, patch from mailinglist (post from Christian Boepple, 2010-09-08 14:38)
drivers/can_peak_win32/can_peak_win32.c
--- a/drivers/can_peak_win32/can_peak_win32.c	Mon Nov 15 08:56:35 2010 +0100
+++ b/drivers/can_peak_win32/can_peak_win32.c	Wed Nov 10 14:19:31 2010 +0100
@@ -150,7 +150,7 @@
 			if (result == WAIT_OBJECT_0)
 				Res = CAN2_ReadEx(&peakMsg, &peakRcvTime);
 				// Exit receive thread when handle is no more valid
-				if(Res & CAN_ERRMASK_ILLHANDLE)
+				if(Res & CAN_ERR_ILLHANDLE)
 					return 1;
 		}
 		else
@@ -163,7 +163,7 @@
 			{
 				Res = CAN_ReadEx(&peakMsg, &peakRcvTime);
 				// Exit receive thread when handle is no more valid
-				if(Res & CAN_ERRMASK_ILLHANDLE)
+				if(Res & CAN_ERR_ILLHANDLE)
 					return 1;
 			}
 		}