aboutsummaryrefslogtreecommitdiff
path: root/libraries/Wire/examples/slave_sender
diff options
context:
space:
mode:
authorMartino Facchin <m.facchin@arduino.cc>2016-07-14 18:43:43 +0200
committerMartino Facchin <m.facchin@arduino.cc>2016-07-14 18:43:43 +0200
commit7874386ce23a7b7383f587e6bf6ae665756024ba (patch)
tree169935a7c74be6eb0835c18a075f590119ab356f /libraries/Wire/examples/slave_sender
parent5e146c415d4b3e9006e21a94428a86320316aaf2 (diff)
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.
Diffstat (limited to 'libraries/Wire/examples/slave_sender')
0 files changed, 0 insertions, 0 deletions