Hi Martin, I modified my local copy of comport to work with lists and it solved all problems.<br><br>I sooo don't know how to code in C, but this is what I added to make it work with lists:<br><br>//Added for LIST processing
<br>static void comport_list(t_comport *x, t_symbol *s, int argc, t_atom *argv)<br>{<br> <br> unsigned char temp_array[argc];<br> int i;<br> for(i = 0; i < argc; i++) <br> {<br> temp_array[i] = ((unsigned char) atom_getint(argv + i)) & 0xFF;
<br> // post ("Data: %d", temp_array[i]);<br> }<br> <br> int result = write(x->comhandle,(char *) &temp_array[0],argc);<br> if (result < 0)<br> post ("[comport] write returned %d, errno is %d", result, errno);
<br> //return result;<br> <br><br>}<br>//Added end<br><br><br>Tom<br><br><br><div><span class="gmail_quote">On 10/11/07, <b class="gmail_sendername">Martin Peach</b> <<a href="mailto:martin.peach@sympatico.ca">martin.peach@sympatico.ca
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thomas O Fredericks wrote:<br>><br>> Hi Martin,<br>><br>> just to make sure, the newest version of comport is in
<br>> iem/comport/comport right?<br>Yep.<br>><br>> "But the result should be the same, the data gets sent anyway, the<br>> error is bogus."<br>><br>> Nope, the data is never received by the device.
<br>OK, I'll look into it. I guess comport should have a way of sending<br>lists of bytes as well.<br><br>Martin<br><br></blockquote></div><br>