drivers/can_peak_win32/can_peak_win32.c
changeset 650 58b07a7e695b
parent 633 2c43383a1d57
child 696 381af6bb6155
--- 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;
 			}
 		}