File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,15 +112,11 @@ private string GetString()
112112
113113 return Sensor . SensorType switch
114114 {
115- SensorType . Temperature => UnitManager . IsFahrenheitUsed ? $ "{ UnitManager . CelsiusToFahrenheit ( Sensor . Value ) : F0} " : $ " { Sensor . Value : F0 } " ,
115+ SensorType . Temperature => UnitManager . IsFahrenheitUsed ? $ "{ UnitManager . CelsiusToFahrenheit ( Sensor . Value ) : F0} " : Sensor . Value . Value . ToTrayValue ( ) ,
116116 SensorType . TimeSpan => $ "{ TimeSpan . FromSeconds ( Sensor . Value . Value ) : g} ",
117117 SensorType . Clock or SensorType . Fan or SensorType . Flow => $ "{ 1e-3f * Sensor . Value : F1} ",
118- SensorType . Voltage or SensorType . Current or SensorType . SmallData or SensorType . Factor or SensorType . Conductivity => $ "{ Sensor . Value : F1} ",
119- SensorType . IntFactor => $ "{ Sensor . Value : F0} ",
120118 SensorType . Throughput => GetThroughputValue ( Sensor . Value ?? 0 ) ,
121- SensorType . Control or SensorType . Frequency or SensorType . Level or SensorType . Load or SensorType . Noise or SensorType . Humidity => $ "{ Sensor . Value : F0} ",
122- SensorType . Energy or SensorType . Power or SensorType . Data => Sensor . Value . Value . ToTrayValue ( ) ,
123- _ => "-" ,
119+ _ => Sensor . Value . Value . ToTrayValue ( ) ,
124120 } ;
125121 }
126122
You can’t perform that action at this time.
0 commit comments