hathach 7 лет назад
Родитель
Сommit
bd53256126
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/portable/microchip/samd21/dcd_samd21.c

+ 1 - 1
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) {