mirror of
https://github.com/opentx/opentx.git
synced 2025-07-17 05:15:18 +03:00
Increase power-on timings, but skip during watchdog reset
This commit is contained in:
parent
29c56cc5b7
commit
58da3f7a30
1 changed files with 4 additions and 2 deletions
|
@ -212,9 +212,11 @@ int main()
|
||||||
|
|
||||||
#if defined(PCBHORUS)
|
#if defined(PCBHORUS)
|
||||||
// wait a bit for the inputs to stabilize...
|
// wait a bit for the inputs to stabilize...
|
||||||
for (uint32_t i = 0; i < 50000; i++) {
|
if (!WAS_RESET_BY_WATCHDOG_OR_SOFTWARE()) {
|
||||||
|
for (uint32_t i = 0; i < 150000; i++) {
|
||||||
__ASM volatile ("nop");
|
__ASM volatile ("nop");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// LHR & RHL trims not pressed simultanously
|
// LHR & RHL trims not pressed simultanously
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue