Problem with the USB cable disconneted
esportsim opened this issue · comments
Hi, this is Carlo. Thanks for this amazing library.
I have a problem. I use the leonardo and when I unplug the usb cable from the PC the code cycle very slowly.
Do you know why? it's normal or it can be solved?
thanks you
If you are trying to communicate on the Serial port and you are not connected to the host computer (i.e., you unplug the USB cable), that can cause a slowdown in some cases.
There is a way to know if the usb cable is attached?
Il giorno ven 10 nov 2023 alle 22:44 Matthew Heironimus <
***@***.***> ha scritto:
… If you are trying to communicate on the Serial port and you are not
connected to the host computer (i.e., you unplug the USB cable), that can
cause a slowdown in some cases.
—
Reply to this email directly, view it on GitHub
<#274 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARQ7AYBPETHFQUB7KX4LMF3YD2N4RAVCNFSM6AAAAAAW4BTXPGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBWGQ3TMNZYGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
I have never done anything like that, but a quick search returned the following ideas:
- https://arduino.stackexchange.com/questions/438/how-does-this-code-line-detect-if-a-serial-interface-is-connected
- https://forum.arduino.cc/t/solved-detecting-serial-communication/500914/24
- https://forum.arduino.cc/t/checking-if-arduino-is-connected-serial-usb-to-a-pc/336007/26
Also, this may not be your issue. It was just a though.
Thank you very much.
Il giorno ven 10 nov 2023 alle 23:01 Matthew Heironimus <
***@***.***> ha scritto:
… I have never done anything like that, but a quick search returned the
following ideas:
-
https://arduino.stackexchange.com/questions/438/how-does-this-code-line-detect-if-a-serial-interface-is-connected
-
https://forum.arduino.cc/t/solved-detecting-serial-communication/500914/24
-
https://forum.arduino.cc/t/checking-if-arduino-is-connected-serial-usb-to-a-pc/336007/26
Also, this may not be your issue. It was just a though.
—
Reply to this email directly, view it on GitHub
<#274 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARQ7AYCI7HH5NV3QK32XJGDYD2P2RAVCNFSM6AAAAAAW4BTXPGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBWGQ4TEOJZGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>