private void display(Text text)
{
lock (this.displayLock)
{
if (this.lcd)
{
Logging.Log("Display Handler", "LCD.SetText: " + text.Lcd);
this.imon.LCD.SetText(text.Lcd);
}
if (this.vfd)
{
Logging.Log("Display Handler", "VFD.SetText: " + text.VfdUpper + "; " + text.VfdLower);
this.imon.VFD.SetText(text.VfdUpper, text.VfdLower);
}
if (text.Delay > 0)
{
Logging.Log("Display Handler", "Showing text for " + text.Delay + "ms");
System.Threading.Thread.Sleep(text.Delay);
}
}
}