Skip to content

Commit

Permalink
- Comment update
Browse files Browse the repository at this point in the history
  • Loading branch information
sp00n committed May 30, 2024
1 parent 1dbb10d commit 9bf83af
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions LiquidctlCLIWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ namespace FanControl.Liquidctl
{
internal static class LiquidctlCLIWrapper
{
public static string liquidctlexe = Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "liquidctl.exe"); // This should always resolve to the same directory as the FanControl.Liquidctl.dll //TODO extract path to executable to config
public static string liquidctlexe = Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "liquidctl.exe"); // This should always resolve to the same directory as the FanControl.Liquidctl.dll
// TODO: extract path to executable to config(?) - Seems to work fine now though
internal static IPluginLogger logger;

internal static void Initialize(IPluginLogger pluginLogger)
Expand All @@ -25,14 +26,12 @@ internal static void Initialize(IPluginLogger pluginLogger)
internal static List<LiquidctlStatusJSON> ReadStatus()
{
Process process = LiquidctlCall($"--json status");
//return JsonConvert.DeserializeObject<List<LiquidctlStatusJSON>>(process.StandardOutput.ReadToEnd());
return ParseStatuses(process.StandardOutput.ReadToEnd());
}

internal static List<LiquidctlStatusJSON> ReadStatus(string address)
{
Process process = LiquidctlCall($"--json --address {address} status");
//return JsonConvert.DeserializeObject<List<LiquidctlStatusJSON>>(process.StandardOutput.ReadToEnd());
return ParseStatuses(process.StandardOutput.ReadToEnd());
}

Expand Down

0 comments on commit 9bf83af

Please sign in to comment.