From 5de422d2879a30cccafd32c5383766f2f56e5525 Mon Sep 17 00:00:00 2001 From: bsongis Date: Mon, 23 Jan 2012 20:54:01 +0000 Subject: [PATCH] Changes on MCUSR / MCUCSR --- src/model_menus.cpp | 2 ++ src/open9x.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/model_menus.cpp b/src/model_menus.cpp index e6499f09f..658a4c780 100644 --- a/src/model_menus.cpp +++ b/src/model_menus.cpp @@ -562,6 +562,7 @@ void menuProcModel(uint8_t event) } } +#if defined(PXX) if (g_model.protocol == PROTO_PXX) { lcd_putsAtt(PARAM_OFS, y, STR_SYNCMENU, ((sub==subN && m_posHorz==1) ? INVERS : 0)); if (sub==subN && m_posHorz==1) { @@ -573,6 +574,7 @@ void menuProcModel(uint8_t event) } } } +#endif } #endif } diff --git a/src/open9x.cpp b/src/open9x.cpp index ba8f41e66..945f59fbf 100644 --- a/src/open9x.cpp +++ b/src/open9x.cpp @@ -2333,9 +2333,9 @@ int main(void) uint8_t cModel = g_eeGeneral.currModel; #if defined (PCBV3) - if (~MCUSR & (1 << WDRF)) { + if (MCUSR != (1 << PORF)) { #else - if (~MCUCSR & (1 << WDRF)) { + if (MCUCSR != (1 << PORF)) { #endif #ifdef SPLASH