1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-26 09:45:33 +03:00

FC init: move 500ms delay after pwmInit

This commit is contained in:
Michel Pastor 2018-03-06 15:34:37 +01:00
parent 695b92a894
commit 44488c83a9

View file

@ -248,8 +248,6 @@ void init(void)
usbVcpInitHardware();
#endif
delay(500);
timerInit(); // timer must be initialized before any channel is allocated
#if defined(AVOID_UART2_FOR_PWM_PPM)
@ -509,8 +507,10 @@ void init(void)
adcInit(&adc_params);
#endif
/* Extra 500ms delay prior to initialising hardware if board is cold-booting */
#if defined(USE_GPS) || defined(USE_MAG)
delay(500);
/* Extra 500ms delay prior to initialising hardware if board is cold-booting */
if (!isMPUSoftReset()) {
addBootlogEvent2(BOOT_EVENT_EXTRA_BOOT_DELAY, BOOT_EVENT_FLAGS_NONE);