Add Fi Warning and Error display

This commit is contained in:
atef 2023-08-31 12:58:37 +02:00
parent 9e03965d5b
commit 5bcb46f841
1 changed files with 3 additions and 4 deletions

View File

@ -231,11 +231,10 @@ internal static class Program
WriteControl(record); WriteControl(record);
record.CreateTopologyTextBlock().WriteLine(); record.CreateTopologyTextBlock().WriteLine();
//record.ToCsv().WriteLine();
//await UploadCsv(record, t);
(record.Relays is null ? "No relay Data available" : record.Relays.FiWarning ? "Alert: Fi Warning Detected" : "No Fi Warning Detected").WriteLine();
(record.Relays is null ? "No relay Data available" : record.Relays.FiError ? "Alert: Fi Error Detected" : "No Fi Error Detected") .WriteLine();
record.Config.Save(); record.Config.Save();
"===========================================".LogInfo(); "===========================================".LogInfo();