Jeff Dairiki wrote:
> Hi Phil,
> 
> On Sat, Dec 20, 2008 at 05:50:48PM +0100, Phil Dibowitz wrote:
>> Jeff Dairiki wrote:
>>> The problem seems to arise when concordance tries to set the clock
>>> in the Harmony 550.   After the new config is written to flash,
>>> the remote is reset, then the remote's clock is set.   The clock-setting
>>> fails (error -110), and this causes concordance to exit with code 1
>>> before it gets around to doing the HTTP POST.
>> I think I know what's going on. Can you try the attached patch? It'll still
>> fail, but it'll print out some useful information for me.
> 
> Err is definitely zero just before the call to HID_ReadReport().
> HID_ReadReport() returns -110.

OK, I think the deal is that some models return a response, and others
don't. Easy enough, we'll just ignore the return value of the read - the
data is not necessary. We have to clear the buffers by reading for devices
that have given us data, but it's not data we ever do anything. So we'll
attempt a read and move on with life. Patch forthcoming.

Thanks,
-- 
Phil Dibowitz                             p...@ipom.com
Open Source software and tech docs        Insanity Palace of Metallica
http://www.phildev.net/                   http://www.ipom.com/

"Never write it in C if you can do it in 'awk';
 Never do it in 'awk' if 'sed' can handle it;
 Never use 'sed' when 'tr' can do the job;
 Never invoke 'tr' when 'cat' is sufficient;
 Avoid using 'cat' whenever possible" -- Taylor's Laws of Programming


Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
_______________________________________________
concordance-devel mailing list
concordance-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/concordance-devel

Reply via email to