# HG changeset patch
# User edouard
# Date 1254304885 -7200
# Node ID ea32aa303987ae51bec458bdf098dc4fc343de86
# Parent  cb69a65bb88d009e5bf495c257b98115aa667e09
Fixed wrong cast in sdo.c and wrong message length in nodeguarding

diff -r cb69a65bb88d -r ea32aa303987 src/nmtMaster.c
--- a/src/nmtMaster.c	Thu Sep 24 10:16:09 2009 +0200
+++ b/src/nmtMaster.c	Wed Sep 30 12:01:25 2009 +0200
@@ -76,7 +76,7 @@
   UNS16 tmp = nodeId | (NODE_GUARD << 7); 
   m.cob_id = UNS16_LE(tmp);
   m.rtr = REQUEST;
-  m.len = 1;
+  m.len = 0;
 
   MSG_WAR(0x3503, "Send_NODE_GUARD to node : ", nodeId);
 
diff -r cb69a65bb88d -r ea32aa303987 src/sdo.c
--- a/src/sdo.c	Thu Sep 24 10:16:09 2009 +0200
+++ b/src/sdo.c	Wed Sep 30 12:01:25 2009 +0200
@@ -551,7 +551,7 @@
     pwCobId = (UNS32*) d->objdict[offset].pSubindex[1].pObject;
   }
   /* message copy for sending */
-  m.cob_id = (UNS8)UNS16_LE(*pwCobId);
+  m.cob_id = (UNS16)UNS16_LE(*pwCobId);
   m.rtr = NOT_A_REQUEST;
   /* the length of SDO must be 8 */
   m.len = 8;