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:
parent
695b92a894
commit
44488c83a9
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue