mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-14 04:57:15 +00:00
Updates to properly clear errors when there are none and set message to "Room Ok."
This commit is contained in:
parent
5d7cdab933
commit
42c483f581
1 changed files with 23 additions and 19 deletions
|
|
@ -64,7 +64,7 @@ namespace PepperDash.Essentials.Core
|
||||||
initialStatus = MonitorStatus.InWarning;
|
initialStatus = MonitorStatus.InWarning;
|
||||||
prefix = "2:";
|
prefix = "2:";
|
||||||
}
|
}
|
||||||
else if (InWarning.Count() > 0)
|
else if (IsOk.Count() > 0)
|
||||||
initialStatus = MonitorStatus.IsOk;
|
initialStatus = MonitorStatus.IsOk;
|
||||||
else
|
else
|
||||||
initialStatus = MonitorStatus.StatusUnknown;
|
initialStatus = MonitorStatus.StatusUnknown;
|
||||||
|
|
@ -88,6 +88,10 @@ namespace PepperDash.Essentials.Core
|
||||||
}
|
}
|
||||||
Message = sb.ToString();
|
Message = sb.ToString();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Message = "Room Ok.";
|
||||||
|
}
|
||||||
|
|
||||||
// Want to fire even if status doesn't change because the message may.
|
// Want to fire even if status doesn't change because the message may.
|
||||||
Status = initialStatus;
|
Status = initialStatus;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue