--- a/drivers/win32/win32.c Sat Jan 21 19:32:58 2012 +0100
+++ b/drivers/win32/win32.c Wed Feb 01 18:07:04 2012 +0100
@@ -136,12 +136,11 @@
/***************************************************************************/
UNS8 canSend(CAN_PORT port, Message *m)
{
- UNS8 res = 1; //NOT OK
if (port && (m_canSend != NULL))
{
- res = m_canSend(((CANPort*)port)->fd, m);
- }
- return res;
+ return m_canSend(((CANPort*)port)->fd, m);
+ }
+ return 1;
}
/***************************************************************************/
--- a/include/can.h Sat Jan 21 19:32:58 2012 +0100
+++ b/include/can.h Wed Feb 01 18:07:04 2012 +0100
@@ -25,18 +25,6 @@
#include "applicfg.h"
-/*
-union SHORT_CAN {
- struct { UNS8 b0,b1; } b;
- UNS32 w;
-};
-*/
-/*
-typedef struct {
- UNS32 w;
-} SHORT_CAN;
-*/
-
/**
* @brief The CAN message structure
* @ingroup can