MrlComm 54

Hi,
 
With the new version, this code doesn't work.
 
  MrlMsg msg(PUBLISH_CUSTOM_MSG);
  msg.countData();
  int i=0;
  while (mrlComm.getCustomMsgSize()){
    int x = mrlComm.getCustomMsg();
    //MrlMsg is the class that build message to send to MRL
    msg.addData(x);
    i++;
  }
  if (i) msg.sendMsg();
 
Could you give me the new procedure ?
Thank.
 
 
mayaway's picture

if (i)

How about:

if (i > 0)

?

dom14's picture

No no, Mrlmsg change in msg

No no, Mrlmsg change in msg class.

if (i) and if (i > 0) is the same result.