mxcl/homebrew — pull request #9164 by nedos (2011-12-18 13:11:19+00:00)
Title: avrdude: fix MacOS-related libusb hangs

Right now when using certain programmers, such as the LUFA [1] OSS-avrispmkII clone on the XPLAIN board, avrdude hangs for a very long time before doing anything. If you're writing code and it takes minutes to program, this can get very tedious. I found this fix on the avrfreaks forums [2]. I reckon the patch author just gdb'd to see that avrdude wasn't returning from a particular function and thus bumped the return up. It's a bit quick and dirty, but it definitely worked for me. If a couple people could test this one, that would be great! You can leave this one open for a while. I just primarily wanted this fix to be documented as it took me forever to find it... and this way people can pull this into their homebrew installations.

[1] http://www.fourwalledcubicle.com/LUFA.php
[2] http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=819522&sid=6ff8e1a850b8eaff29d6dd6a5b388cb9#819522