1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-03 14:24:15 +01:00
Arduino/hardware/arduino
Martino Facchin 003d22f2a5 Send an USB remote wakeup if data need to be written
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.
2016-07-14 18:43:43 +02:00
..
avr Send an USB remote wakeup if data need to be written 2016-07-14 18:43:43 +02:00
sam Merge pull request #5018 from sandeepmistry/sam-SerialUSB.availableForWrite 2016-07-07 18:12:27 +02:00