From bd5325612620209e7964f10817a57f916d3bc13f Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 23 Jan 2019 19:06:37 +0700 Subject: [PATCH] fix #32 --- src/portable/microchip/samd21/dcd_samd21.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/portable/microchip/samd21/dcd_samd21.c b/src/portable/microchip/samd21/dcd_samd21.c index 7b2a57ee..6140812b 100644 --- a/src/portable/microchip/samd21/dcd_samd21.c +++ b/src/portable/microchip/samd21/dcd_samd21.c @@ -296,7 +296,7 @@ void maybe_transfer_complete(void) { uint32_t epintflag = ep->EPINTFLAG.reg; - uint16_t total_transfer_size; + uint16_t total_transfer_size = 0; // Handle IN completions if ((epintflag & USB_DEVICE_EPINTFLAG_TRCPT1) != 0) {