--- 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;
}
/***************************************************************************/