From: Paul M. <pa...@pi...> - 2005-02-22 16:07:22
|
On Tuesday 22 February 2005 8:24 am, Christoph Bartelmus wrote: > this remote sends 3 byte codes. > To padd this to 5 bytes you have to set byte 4 and 5 to 0 explicitly. > Currently the values for byte 4 and 5 are what happens to be inside the > buffer memory when it is allocated. Thanks. > The buffer and length handling might be worth a cleanup. You allocate > buffer space to accept multiple signals (USB_BUFLEN), but you never > accept more than one signal in a buffer (code_check). True. I just changed the inbound endpoint buffer lengths to CODE_LENGTH and the outbound endpoints to USB_OUTLEN = 7 (maximum init string length). -Paul |