Skip to content

Commit

Permalink
fix: single byte corruption in the usb serial stream
Browse files Browse the repository at this point in the history
  • Loading branch information
p3p committed Oct 12, 2018
1 parent 0c09f16 commit f43f4f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/arduino/CDCSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ template <typename T, uint32_t S> class RingBuffer {

static const uint32_t buffer_size = S;
static const uint32_t buffer_mask = buffer_size - 1;
T buffer[buffer_size];
volatile T buffer[buffer_size];
volatile uint32_t index_write;
volatile uint32_t index_read;
};
Expand Down

0 comments on commit f43f4f8

Please sign in to comment.