1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-13 11:29:51 +03:00

Increase power-on timings, but skip during watchdog reset

This commit is contained in:
3djc 2019-11-28 15:58:40 +01:00
parent 29c56cc5b7
commit 58da3f7a30

View file

@ -212,8 +212,10 @@ int main()
#if defined(PCBHORUS)
// wait a bit for the inputs to stabilize...
for (uint32_t i = 0; i < 50000; i++) {
__ASM volatile ("nop");
if (!WAS_RESET_BY_WATCHDOG_OR_SOFTWARE()) {
for (uint32_t i = 0; i < 150000; i++) {
__ASM volatile ("nop");
}
}
#endif