diff --git a/csharp/App/SaliMax/src/Program.cs b/csharp/App/SaliMax/src/Program.cs index 69411008f..92e3bae52 100644 --- a/csharp/App/SaliMax/src/Program.cs +++ b/csharp/App/SaliMax/src/Program.cs @@ -80,7 +80,7 @@ internal static class Program { "Starting SaliMax".LogInfo(); - Watchdog.Ready(); + Watchdog.NotifyReady(); var battery48TlDevices = BatteryNodes .Select(n => new Battery48TlDevice(BatteriesChannel, n)) @@ -184,7 +184,7 @@ internal static class Program StatusRecord RunIteration() { - Watchdog.Alive(); + Watchdog.NotifyAlive(); var t = UnixTime.Now; var record = ReadStatus(); diff --git a/csharp/App/SaliMax/src/Watchdog.cs b/csharp/App/SaliMax/src/Watchdog.cs index e93bac272..c738badaf 100644 --- a/csharp/App/SaliMax/src/Watchdog.cs +++ b/csharp/App/SaliMax/src/Watchdog.cs @@ -10,6 +10,6 @@ public static class Watchdog [DllImport("libsystemd.so.0")] private static extern Int32 sd_notify(Int32 unsetEnvironment, String state); - public static void Ready() => _ = sd_notify(0, "READY=1"); - public static void Alive() => _ = sd_notify(0, "WATCHDOG=1"); + public static void NotifyReady() => _ = sd_notify(0, "READY=1"); + public static void NotifyAlive() => _ = sd_notify(0, "WATCHDOG=1"); } \ No newline at end of file diff --git a/csharp/Lib/Units/Units.cs b/csharp/Lib/Units/Units.cs index 2044d91ae..4a9501ded 100644 --- a/csharp/Lib/Units/Units.cs +++ b/csharp/Lib/Units/Units.cs @@ -58,7 +58,7 @@ public static class Units } else if (parent is String s) { - csvLines.Add($"{path};{s};"); // leaf: unit + csvLines.Add($"{path};{s};"); // leaf: String } else if(type.IsEnum || (type.IsValueType && !type.IsNested)) {