equal
deleted
inserted
replaced
30 */ |
30 */ |
31 |
31 |
32 /* #define DEBUG_WAR_CONSOLE_ON */ |
32 /* #define DEBUG_WAR_CONSOLE_ON */ |
33 /* #define DEBUG_ERR_CONSOLE_ON */ |
33 /* #define DEBUG_ERR_CONSOLE_ON */ |
34 |
34 |
35 #include "objacces.h" |
35 #include "data.h" |
36 #include "sdo.h" |
|
37 #include "canfestival.h" |
|
38 #include "sysdep.h" |
36 #include "sysdep.h" |
39 |
37 |
40 /* Uncomment if your compiler does not support inline functions */ |
38 /* Uncomment if your compiler does not support inline functions */ |
41 #define NO_INLINE |
39 #define NO_INLINE |
42 |
40 |
517 offset = d->firstIndex->SDO_SVR; |
515 offset = d->firstIndex->SDO_SVR; |
518 if (offset == 0) { |
516 if (offset == 0) { |
519 MSG_ERR(0x1A42, "SendSDO : No SDO server found", 0); |
517 MSG_ERR(0x1A42, "SendSDO : No SDO server found", 0); |
520 return 0xFF; |
518 return 0xFF; |
521 } |
519 } |
522 pwCobId = (UNS32*) d->objdict[offset].pSubindex[2].pObject; |
520 pwCobId = (UNS16*) d->objdict[offset].pSubindex[2].pObject; |
523 MSG_WAR(0x3A41, "I am server. cobId : ", *pwCobId); |
521 MSG_WAR(0x3A41, "I am server. cobId : ", *pwCobId); |
524 } |
522 } |
525 else { /*case client*/ |
523 else { /*case client*/ |
526 /* Get the client->server cobid.*/ |
524 /* Get the client->server cobid.*/ |
527 UNS16 sdoNum = 0; |
525 UNS16 sdoNum = 0; |