webusb / arduino

WebUSB demos running on Arduino (and compatible) hardware.
566 stars 152 forks source link

Significant delay in WebUSB::operator bool() #50

Closed DeqingSun closed 5 years ago

DeqingSun commented 6 years ago

The delay in WebUSB::operator bool() will introduce a huge delay in the main loop if the user checks it every time.

What is the bug found by Federico? I can not find any info on Github, but there should be a better way to fix it.

jpliew commented 6 years ago

@DeqingSun it looks like the comment was before code was first committed to this repo.

If your sketch is not sending messages to the host, you can ignore it and not necessarily need to check the return status.

reillyeon commented 6 years ago

This file is a copy of CDC.cpp out of the Arduino SDK with modifications as described in README.md.