fix setting scaling
This commit is contained in:
parent
ebc42d1436
commit
41e2c5b009
@ -120,12 +120,8 @@ public sealed class FelicitySolarInverter
|
|||||||
{
|
{
|
||||||
value *= setting switch
|
value *= setting switch
|
||||||
{
|
{
|
||||||
Setting.DischargeCutOff or
|
Setting.DischargeCutOff or Setting.BulkVoltage or Setting.FloatVoltage or Setting.BackToGrid or Setting.BackToBattery => 10,
|
||||||
Setting.BulkVoltage or
|
_ => 1
|
||||||
Setting.FloatVoltage or
|
|
||||||
Setting.BackToGrid or
|
|
||||||
Setting.BackToBattery => 10,
|
|
||||||
_ => throw new ArgumentException("Invalid setting!")
|
|
||||||
};
|
};
|
||||||
|
|
||||||
var registerAddress = (ushort)setting;
|
var registerAddress = (ushort)setting;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user