diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2014-06-07 17:25:10 +1000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2014-06-07 17:25:10 +1000 |
commit | 22b39703387044d7be9c2b3cb5504abb791fb1a6 (patch) | |
tree | 32a67d5f676463253a1f0ac9bcf1ed3bf5dd0216 /Demos/Device/LowLevel | |
parent | 1b93c85b208577dc97771637931d6dd2256cbafe (diff) | |
download | lufa-22b39703387044d7be9c2b3cb5504abb791fb1a6.tar.gz lufa-22b39703387044d7be9c2b3cb5504abb791fb1a6.tar.bz2 lufa-22b39703387044d7be9c2b3cb5504abb791fb1a6.zip |
Ensure BulkVendor received data is cleared before reading from host.
Diffstat (limited to 'Demos/Device/LowLevel')
-rw-r--r-- | Demos/Device/LowLevel/BulkVendor/BulkVendor.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Demos/Device/LowLevel/BulkVendor/BulkVendor.c b/Demos/Device/LowLevel/BulkVendor/BulkVendor.c index 0a395b3d4..14d098285 100644 --- a/Demos/Device/LowLevel/BulkVendor/BulkVendor.c +++ b/Demos/Device/LowLevel/BulkVendor/BulkVendor.c @@ -53,6 +53,7 @@ int main(void) USB_USBTask(); uint8_t ReceivedData[VENDOR_IO_EPSIZE]; + memset(ReceivedData, 0x00, sizeof(ReceivedData)); Endpoint_SelectEndpoint(VENDOR_OUT_EPADDR); if (Endpoint_IsOUTReceived()) |