Removed struct initializer with non-constant pointer, making TI compiler fail
authoretisserant
Thu, 27 Sep 2007 08:28:00 +0200
changeset 285 dbf7695290ae
parent 284 24bf3d692993
child 286 85d5361179f3
Removed struct initializer with non-constant pointer, making TI compiler fail
src/pdo.c
--- a/src/pdo.c	Wed Sep 26 16:02:00 2007 +0200
+++ b/src/pdo.c	Thu Sep 27 08:28:00 2007 +0200
@@ -121,8 +121,11 @@
 
       MSG_WAR(0x3930, "sendPDOrequest cobId is : ",*pwCobId);
       {
-      Message pdo = {*pwCobId, REQUEST, 0};
-      return canSend(d->canHandle,&pdo);
+          Message pdo;
+          pdo.cob_id.w = *pwCobId;
+          pdo.rtr = REQUEST;
+          pdo.len = 0;      
+          return canSend(d->canHandle,&pdo);
       }
     }
   }