memory corruption, typo addr-value

This commit is contained in:
Lok Tep 2016-10-01 19:38:43 +02:00
parent 4cb1ba493b
commit 33cea5038f

View File

@ -4230,7 +4230,10 @@ static void stm32_epin_disable(FAR struct stm32_ep_s *privep)
/* Clear the EPDISD interrupt indication */
stm32_putreg(OTG_DIEPINT_EPDISD, stm32_getreg(regaddr));
regval = stm32_getreg(regaddr);
regval |= OTG_DIEPINT_EPDISD;
stm32_putreg(OTG_DIEPINT_EPDISD, regaddr);
/* Flush any data remaining in the TxFIFO */