1
0
Fork 0
mirror of https://github.com/EdgeTX/edgetx.git synced 2025-07-26 09:45:16 +03:00

BootCmd should be always high

This commit is contained in:
Bertrand Songis 2019-05-06 11:23:51 +02:00
parent a3fe388399
commit 05596fec9e
3 changed files with 12 additions and 4 deletions

View file

@ -490,10 +490,11 @@ void menuRadioSdManager(event_t _event)
popupMenuItems[i] = reusableBuffer.sdManager.otaInformation.candidateReceiversNames[i];
}
popupMenuTitle = STR_PXX2_SELECT_RX;
CLEAR_POPUP();
POPUP_MENU_START(onUpdateReceiverSelection);
}
else {
drawMessageBox("Waiting for RX...");
POPUP_WAIT(STR_WAITING_FOR_RX);
}
}
}

View file

@ -54,12 +54,19 @@ void pwrInit()
#endif
#if defined(INTMODULE_BOOTCMD_GPIO)
GPIO_ResetBits(INTMODULE_BOOTCMD_GPIO, INTMODULE_BOOTCMD_GPIO_PIN);
GPIO_SetBits(INTMODULE_BOOTCMD_GPIO, INTMODULE_BOOTCMD_GPIO_PIN);
GPIO_InitStructure.GPIO_Pin = INTMODULE_BOOTCMD_GPIO_PIN;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_DOWN;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
GPIO_Init(INTMODULE_BOOTCMD_GPIO, &GPIO_InitStructure);
#endif
#if defined(INTMODULE_USART) && defined(HEARTBEAT_GPIO_PIN)
GPIO_SetBits(HEARTBEAT_GPIO, HEARTBEAT_GPIO_PIN);
GPIO_InitStructure.GPIO_Pin = HEARTBEAT_GPIO_PIN;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
GPIO_Init(HEARTBEAT_GPIO, &GPIO_InitStructure);
#endif
pwrOn();
}

View file

@ -252,7 +252,7 @@ void init_sbus_on_heartbeat_capture()
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz;
GPIO_Init(GPIOC, &GPIO_InitStructure);
GPIO_Init(HEARTBEAT_GPIO, &GPIO_InitStructure);
USART_InitStructure.USART_BaudRate = 100000;
USART_InitStructure.USART_WordLength = USART_WordLength_9b;