diff --git a/src/drivers.cpp b/src/drivers.cpp index 96a398c5e..40997f7ec 100644 --- a/src/drivers.cpp +++ b/src/drivers.cpp @@ -148,6 +148,7 @@ void killEvents(uint8_t event) volatile tmr10ms_t g_tmr10ms; volatile uint8_t g_blinkTmr10ms; +volatile uint8_t rtc_count=0; void per10ms() { @@ -166,8 +167,9 @@ void per10ms() if (++g_ms100 == 100) { g_rtcTime++; // inc global unix timestamp one second #if defined (PCBSKY9X) - if (g_rtcTime < 120) { + if (g_rtcTime < 60 || rtc_count<5) { rtc_init(); + rtc_count++; } else { read_coprocessor(true); } diff --git a/src/general_menus.cpp b/src/general_menus.cpp index ec619129f..c9724ff29 100644 --- a/src/general_menus.cpp +++ b/src/general_menus.cpp @@ -767,7 +767,7 @@ void menuGeneralVersion(uint8_t event) lcd_putsLeft(4*FH, stamp3); lcd_putsLeft(5*FH, stamp4); #if defined(PCBSKY9X) - if (Coproc_valid != 1) { + if (Coproc_valid == 1) { lcd_putsLeft(6*FH, PSTR("CoPr:")); lcd_outdez8(10*FW, 6*FH, Coproc_read); }