FIXED: - OK and NOT OK was wrong in canSend()
authorChristian Taedcke <Christian.Taedcke@ica-traffic.de>
Fri, 19 Feb 2010 15:52:27 +0100
changeset 652 3b5789c34499
parent 651 2a36570aa68c
child 653 e2d0c5251fbd
FIXED: - OK and NOT OK was wrong in canSend()
drivers/win32/win32.c
--- a/drivers/win32/win32.c	Thu Sep 09 16:01:13 2010 +0200
+++ b/drivers/win32/win32.c	Fri Feb 19 15:52:27 2010 +0100
@@ -136,13 +136,12 @@
 /***************************************************************************/
 UNS8 canSend(CAN_PORT port, Message *m)
 {
-	UNS8 res;
+	UNS8 res = 1; //NOT OK
 	if (port && (m_canSend != NULL))
 	{
 		res = m_canSend(((CANPort*)port)->fd, m);
-		if (res) return 1; // OK
-	}
-	return 0; // NOT OK
+	}
+	return res;
 }
 
 /***************************************************************************/