I get this error on Mac when data is sent too fast to the BlinkStick. Either it is something in libusb or just something OSX can't handle, in which case some kind of break is needed (a general break or something in methods that sent a lot of data, like the unfinished fade method). @bjoska is not getting this on Ubuntu.
?> bs.fade([255, 0, 0], [0, 255, 0], time: 10)
LIBUSB::ERROR_IO: error TRANSFER_ERROR
from /Users/Daniel/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/libusb-0.4.0/lib/libusb/dev_handle.rb:471:in `submit_transfer'
from /Users/Daniel/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/libusb-0.4.0/lib/libusb/dev_handle.rb:447:in `control_transfer'
from /Users/Daniel/Code/sandbox/blink_stick/lib/blink_stick/color_handler.rb:5:in `color='
[...]
Need to find out of this is a ahrdware limitation of BlnkStick or related to libusb. If it's hw releated the gem should have some kind of workaround for this.
I get this error on Mac when data is sent too fast to the BlinkStick. Either it is something in libusb or just something OSX can't handle, in which case some kind of break is needed (a general break or something in methods that sent a lot of data, like the unfinished fade method). @bjoska is not getting this on Ubuntu.