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:
parent
f60067ae10
commit
259f7b05fb
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue