mirror of
https://github.com/opentx/opentx.git
synced 2025-07-13 03:19:53 +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)
|
#if defined(RADIO_T8) && !defined(RADIOMASTER_RELEASE)
|
||||||
// Bind button not pressed
|
// Bind button not pressed
|
||||||
if ((~KEYS_GPIO_REG_BIND & KEYS_GPIO_PIN_BIND) == false) {
|
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
|
#else
|
||||||
// LHR & RHL trims not pressed simultanously
|
// LHR & RHL trims not pressed simultaneously
|
||||||
if (readTrims() != BOOTLOADER_KEYS) {
|
if (readTrims() != BOOTLOADER_KEYS) {
|
||||||
#endif
|
#endif
|
||||||
// Start main application
|
// Start main application
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue