diff --git a/src/Client/Pages/Index.razor b/src/Client/Pages/Index.razor
index e4ecc56..8bd48b7 100644
--- a/src/Client/Pages/Index.razor
+++ b/src/Client/Pages/Index.razor
@@ -62,8 +62,8 @@
-
- @(status?.HeatSinkTemperature) C°
+
+ @(status?.WorkingMode)
@@ -205,16 +205,6 @@
private static double RoundToOneDecimal(double? val)
=> Math.Round(val ?? 0, 1);
- private static string TemperatureCss()
- {
- return status?.HeatSinkTemperature switch
- {
- >= 55 and < 65 => "text-danger",
- >= 65 => "text-danger fw-bolder blinktext",
- _ => "text-muted"
- };
- }
-
public static async Task StartStatusStreaming(string basePath)
{
//note: only reason we have a full-time stream download is because there's a bug in
diff --git a/src/Client/Pages/Settings.razor b/src/Client/Pages/Settings.razor
index 1ce309f..89114cb 100644
--- a/src/Client/Pages/Settings.razor
+++ b/src/Client/Pages/Settings.razor
@@ -375,11 +375,11 @@
}
}
- private async Task SetChargeCurrent(Setting settingName, byte value)
+ private async Task SetChargeCurrent(Setting setting, byte value)
{
isSuccess = false;
- switch (settingName)
+ switch (setting)
{
case Setting.CombinedChargeCurrent:
currentButton = Button.MaxCombinedChargeCurrent;
@@ -392,10 +392,12 @@
break;
}
- if (await Http.GetStringAsync($"api/settings/set-setting/{settingName}/{value}") == "true")
+ var xxx = $"api/settings/set-setting/{setting}/{value}";
+
+ if (await Http.GetStringAsync($"api/settings/set-setting/{setting}/{value}") == "true")
{
isSuccess = true;
- UpdateLocalSetting(settingName, value);
+ UpdateLocalSetting(setting, value);
}
}
diff --git a/src/Server/Endpoints/GetStatus/Endpoint.cs b/src/Server/Endpoints/GetStatus/Endpoint.cs
index f9a0ff2..13a30ba 100644
--- a/src/Server/Endpoints/GetStatus/Endpoint.cs
+++ b/src/Server/Endpoints/GetStatus/Endpoint.cs
@@ -7,6 +7,7 @@ namespace InverterMon.Server.Endpoints.GetStatus;
public class Endpoint : EndpointWithoutRequest