Reduce BUSY_TIMEOUT and handles FPC/FLASH FW more gracefully on non-RDV4 pm3

This commit is contained in:
Philippe Teuwen 2019-05-01 16:48:04 +02:00
commit 9d261adfb1
4 changed files with 11 additions and 9 deletions

View file

@ -1564,15 +1564,16 @@ void __attribute__((noreturn)) AppMain(void) {
usart_init();
#endif
#ifdef WITH_FLASH
loadT55xxConfig();
#endif
// This is made as late as possible to ensure enumeration without timeout
// against device such as http://www.hobbytronics.co.uk/usb-host-board-v2
usb_disable();
usb_enable();
#ifdef WITH_FLASH
// If flash is not present, BUSY_TIMEOUT kicks in, let's do it after USB
loadT55xxConfig();
#endif
for (;;) {
WDT_HIT();