Small fix for coproc read

This commit is contained in:
romolo.manfredini@gmail.com
2012-10-08 15:35:44 +00:00
parent d737e314ea
commit acb7822712
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -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);
}
+1 -1
View File
@@ -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);
}