From 4e1218e191c24bf6dad3a14cbfb76a80ec90ce67 Mon Sep 17 00:00:00 2001 From: bsongis Date: Wed, 9 May 2012 19:16:30 +0000 Subject: [PATCH] The radio didn't skip the splash and the checks on reboot due to WDT --- src/open9x.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/open9x.cpp b/src/open9x.cpp index 491d9b142..e5d810f0d 100644 --- a/src/open9x.cpp +++ b/src/open9x.cpp @@ -2623,9 +2623,9 @@ int main(void) #endif #if defined(PCBV4) - if (MCUSR != (1 << PORF) && !g_eeGeneral.unexpectedShutdown) + if ((~MCUSR & (1 << WDRF)) && !g_eeGeneral.unexpectedShutdown) #elif defined(PCBSTD) - if (MCUCSR != (1 << PORF)) + if (~MCUCSR & (1 << WDRF)) #else if (!g_eeGeneral.unexpectedShutdown) #endif