Skip to content

Commit

Permalink
Replaced Signal with RSSI in DCS
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishamm committed Dec 9, 2024
1 parent 668d2e8 commit e95e994
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DuetControlServer/Model/PeriodicUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ private static async Task<bool> UpdateNetwork(System.Net.NetworkInformation.Netw
Match signalMatch = signalRegex.Match(wifiData);
if (signalMatch.Success)
{
networkInterface.Signal = int.Parse(signalMatch.Groups[1].Value);
networkInterface.RSSI = int.Parse(signalMatch.Groups[1].Value);
}

// Get WiFi SSID
Expand Down Expand Up @@ -350,7 +350,7 @@ private static async Task<bool> UpdateNetwork(System.Net.NetworkInformation.Netw
}
catch (Exception e)
{
networkInterface.Signal = null;
networkInterface.RSSI = null;
networkInterface.SSID = string.Empty;
_logger.Debug(e);
}
Expand All @@ -359,7 +359,7 @@ private static async Task<bool> UpdateNetwork(System.Net.NetworkInformation.Netw
}
else
{
networkInterface.Signal = null;
networkInterface.RSSI = null;
networkInterface.SSID = null;
networkInterface.Type = NetworkInterfaceType.LAN;
networkInterface.WifiCountry = null;
Expand Down

0 comments on commit e95e994

Please sign in to comment.