devanlai / dapboot

DFU Bootloader for STM32 chips
Other
337 stars 111 forks source link

Fixes issue #13. Delay reading the button. #14

Closed 0x3333 closed 5 years ago

0x3333 commented 5 years ago

This PR adds a delay before reading the button state, in case the board has a debounce capacitor.

In a 72Mhz it will take approximately 20ms.

0x3333 commented 5 years ago

That is exactly my situation.

Nice addition, will update the PR.

0x3333 commented 5 years ago

Done.

devanlai commented 5 years ago

Thanks for finding this overlooked case and fixing it!