Small bugfixes
Deploy / Build and Deploy (push) Successful in 2m8s

This commit is contained in:
2026-08-05 16:59:29 +02:00
parent fd8bd7215a
commit cbf33cbd17
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ namespace PamhagenSysCtrl.Helpers.Pipeline {
var start = points.First();
var path = new Path(start, []);
foreach (var end in points.Skip(1)) {
if (valid != null && !valid(start)) {
if (valid != null && start != points.First() && !valid(start)) {
return null;
} else if (GetPath(start, end, valid, visited: [.. path.Hops.Select(h => h.Node)]) is not Path p) {
return null;
+1 -1
View File
@@ -123,7 +123,7 @@ namespace PamhagenSysCtrl.Helpers {
}
public async Task<Status> DataWrite(params (string Register, ushort[] Values)[] registers) {
await SendCommand("DW", string.Join(',', registers.Select(r => $"{r.Register},{r.Values.Length}," + string.Join(',', r.Values.Select(v => $"{v:X}")))));
await SendCommand("DW", string.Join(',', registers.Select(r => $"{r.Register},{r.Values.Length}," + string.Join(',', r.Values.Select(v => $"{v:X4}")))));
var (_, res) = await ReceiveResponse("ST");
return new Status((Mode)(res[3] - '0'), ((res[0] - '0') << 4) | (res[1] - '0'));
}