Small fix for coproc read
This commit is contained in:
+3
-1
@@ -148,6 +148,7 @@ void killEvents(uint8_t event)
|
|||||||
|
|
||||||
volatile tmr10ms_t g_tmr10ms;
|
volatile tmr10ms_t g_tmr10ms;
|
||||||
volatile uint8_t g_blinkTmr10ms;
|
volatile uint8_t g_blinkTmr10ms;
|
||||||
|
volatile uint8_t rtc_count=0;
|
||||||
|
|
||||||
void per10ms()
|
void per10ms()
|
||||||
{
|
{
|
||||||
@@ -166,8 +167,9 @@ void per10ms()
|
|||||||
if (++g_ms100 == 100) {
|
if (++g_ms100 == 100) {
|
||||||
g_rtcTime++; // inc global unix timestamp one second
|
g_rtcTime++; // inc global unix timestamp one second
|
||||||
#if defined (PCBSKY9X)
|
#if defined (PCBSKY9X)
|
||||||
if (g_rtcTime < 120) {
|
if (g_rtcTime < 60 || rtc_count<5) {
|
||||||
rtc_init();
|
rtc_init();
|
||||||
|
rtc_count++;
|
||||||
} else {
|
} else {
|
||||||
read_coprocessor(true);
|
read_coprocessor(true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -767,7 +767,7 @@ void menuGeneralVersion(uint8_t event)
|
|||||||
lcd_putsLeft(4*FH, stamp3);
|
lcd_putsLeft(4*FH, stamp3);
|
||||||
lcd_putsLeft(5*FH, stamp4);
|
lcd_putsLeft(5*FH, stamp4);
|
||||||
#if defined(PCBSKY9X)
|
#if defined(PCBSKY9X)
|
||||||
if (Coproc_valid != 1) {
|
if (Coproc_valid == 1) {
|
||||||
lcd_putsLeft(6*FH, PSTR("CoPr:"));
|
lcd_putsLeft(6*FH, PSTR("CoPr:"));
|
||||||
lcd_outdez8(10*FW, 6*FH, Coproc_read);
|
lcd_outdez8(10*FW, 6*FH, Coproc_read);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user