1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-12 19:10:19 +03:00

Fix TPro boot on charge connection at bootloader level

This commit is contained in:
3djc 2022-03-01 12:30:26 +01:00
parent f60067ae10
commit 259f7b05fb

View file

@ -221,8 +221,17 @@ int main()
#if defined(RADIO_T8) && !defined(RADIOMASTER_RELEASE)
// Bind button not pressed
if ((~KEYS_GPIO_REG_BIND & KEYS_GPIO_PIN_BIND) == false) {
#elif defined(RADIO_TPRO)
// Checks pwr is pressed to avoid USB charge erroneous start
if (!pwrPressed() && !WAS_RESET_BY_WATCHDOG_OR_SOFTWARE()) {
pwrOff();
while(1);
}
// LHR & RHL trims not pressed simultaneously
if (readTrims() != BOOTLOADER_KEYS) {
#else
// LHR & RHL trims not pressed simultanously
// LHR & RHL trims not pressed simultaneously
if (readTrims() != BOOTLOADER_KEYS) {
#endif
// Start main application