add EmuMeter TODO

This commit is contained in:
ig 2023-06-20 09:30:21 +02:00
parent 73f4b22930
commit 5e8ec1aebf
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,8 @@ using InnovEnergy.Lib.Victron.VeDBus;
namespace InnovEnergy.App.EmuMeterDriver;
// TODO: Does not compile
public record Signal(Func<EmuMeterStatus, Object> Source, ObjectPath Path, String Format = "")
{
public VeProperty ToVeProperty(EmuMeterStatus status)
@ -11,5 +13,4 @@ public record Signal(Func<EmuMeterStatus, Object> Source, ObjectPath Path, Strin
var value = Source(status);
return new VeProperty(Path, value, String.Format($"{{0:{Format}}}", value));
}
}