--- a/drivers/can_socket/can_socket.c Tue Oct 02 17:45:25 2007 +0200
+++ b/drivers/can_socket/can_socket.c Tue Oct 02 17:56:11 2007 +0200
@@ -59,38 +59,6 @@
#include "can_driver.h"
-#if defined DEBUG_WAR_CONSOLE_ON || defined DEBUG_ERR_CONSOLE_ON
-#include "def.h"
-
-#define MyCase(fc) case fc: printf(#fc);break;
-void print_message(Message *m)
-{
- int i;
- switch(m->cob_id.w >> 7)
- {
- MyCase(SYNC)
- MyCase(TIME_STAMP)
- MyCase(PDO1tx)
- MyCase(PDO1rx)
- MyCase(PDO2tx)
- MyCase(PDO2rx)
- MyCase(PDO3tx)
- MyCase(PDO3rx)
- MyCase(PDO4tx)
- MyCase(PDO4rx)
- MyCase(SDOtx)
- MyCase(SDOrx)
- MyCase(NODE_GUARD)
- MyCase(NMT)
- }
- printf(" rtr:%d", m->rtr);
- printf(" len:%d", m->len);
- for (i = 0 ; i < m->len ; i++)
- printf(" %02x", m->data[i]);
- printf("\n");
-}
-
-#endif
/*********functions which permit to communicate with the board****************/
UNS8
canReceive_driver (CAN_HANDLE fd0, Message * m)