# HG changeset patch # User Christian Taedcke # Date 1266591147 -3600 # Node ID 3b5789c3449916ab83b333512d1bad6a7ad27038 # Parent 2a36570aa68c59c2a953446974d7c09ddefe269a FIXED: - OK and NOT OK was wrong in canSend() diff -r 2a36570aa68c -r 3b5789c34499 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; } /***************************************************************************/