From 5bcb46f84152e3fa1fdbddb61ec11f766752cb85 Mon Sep 17 00:00:00 2001 From: atef Date: Thu, 31 Aug 2023 12:58:37 +0200 Subject: [PATCH] Add Fi Warning and Error display --- csharp/App/SaliMax/src/Program.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/csharp/App/SaliMax/src/Program.cs b/csharp/App/SaliMax/src/Program.cs index 7327b3b2e..ac2c7ed37 100644 --- a/csharp/App/SaliMax/src/Program.cs +++ b/csharp/App/SaliMax/src/Program.cs @@ -231,11 +231,10 @@ internal static class Program WriteControl(record); 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(); "===========================================".LogInfo();