• Martino Facchin's avatar
    Send an USB remote wakeup if data need to be written · 7874386c
    Martino Facchin authored
    On Linux, setting autosuspend_delay_ms to N and control to auto allows the host pc to suspend the peripheral. Some Linux distro (Ubuntu, Mint) apply this behaviour by default.
    If the sketch's prints where less frequent than N milliseconds the sketch prints would never arrive.
    This patch allows sending a remote wakeup event to unsuspend the peripheral and allow the serial prints to be received.
    7874386c
USBCore.cpp 19.8 KB