aboutsummaryrefslogtreecommitdiff
path: root/firmwares/atmegaxxu2/arduino-usbserial/Descriptors.c
diff options
context:
space:
mode:
authorJohn Holman <john.g.holman@gmail.com>2017-10-25 10:06:37 +0100
committerMartino Facchin <m.facchin@arduino.cc>2017-11-13 17:46:47 +0100
commite9e43cf58302a16b606ed6fd0b5b2c73efc2ada2 (patch)
treec28b2f58d9fc2a790c9e675cfb57ba9fe75f1870 /firmwares/atmegaxxu2/arduino-usbserial/Descriptors.c
parentd50e59781ecfd80a366cd0bb0b30374b1536247a (diff)
Prevent buffer retransmission when transmit buffer is empty
Moving the head buffer pointer and setting interrupt flag is now atomic in write(). Previously an intervening ISR could empty the buffer before the second ISR is triggered causing retransmission. Fixes: #3745 (original issue only)
Diffstat (limited to 'firmwares/atmegaxxu2/arduino-usbserial/Descriptors.c')
0 files changed, 0 insertions, 0 deletions