-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes default 100ms delay with HWCDC write() is CDC is not connected (#…
…9307) * feat(hwcdc): fix delay Fixes delay when CDC is disconnected. At this time is only fixes it when USB cable is unplugged. * feat(hwcdc): fix delay fixes delay when CDC is not connected. It was only considering when the USB cable was not plugged. * feat(hwcdc): add 2 methods Adds 2 new methods: - isPlugged() will return true when USB cable is plugged, false otherwise. - isConnected() will return true when USB CDC is connected to a application in the USB Host side and communication is stablished. * feat(hwcdc): adjusts APIs Fixes the example to use the new added APIs for checking if USB cable is plugged and for checking if CDC is connected. * fixes api declaration * fixes API declaration
- Loading branch information
Showing
3 changed files
with
64 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters