Here is how I did it:
void loop() {
DcsBios::loop();
//watchdog timer... clears displays when MetadataEnd/_UPDATE_COUNTER stops changing for more than 2 seconds
unsigned long currentMillis = millis();
if (currentMillis - previousMillis >= interval) {
previousMillis = currentMillis;
if (ticklast == tick) {
lc.clearDisplay(0);
lc.clearDisplay(1);
}
tick=ticklast;
}
} //end loop
void onUpdateCounterChange(unsigned int newValue) {
tick=newValue;
}
DcsBios::IntegerBuffer UpdateCounterBuffer(0xfffe, 0x00ff, 0, onUpdateCounterChange);