From c64d81c36fce25e91fcafe1282cc37c25a78938f Mon Sep 17 00:00:00 2001 From: pblivingston <71585805+pblivingston@users.noreply.github.com> Date: Mon, 22 Dec 2025 11:44:40 -0500 Subject: [PATCH] bus trim, delay - now pass Eq object reference to Channel - get remote from Eq - added kindOfEq check for trim and delay for safety, float pester tests for potato pass --- lib/io.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/io.ps1 b/lib/io.ps1 index c9dd9ab..af42e2c 100644 --- a/lib/io.ps1 +++ b/lib/io.ps1 @@ -47,7 +47,7 @@ class IOEq : IRemote { $this.channel = @() for ($ch = 0; $ch -lt $remote.kind.eq_ch[$this.kindOfEq]; $ch++) { - $this.channel.Add([EqChannel]::new($ch, $remote, $this.identifier())) + $this.channel.Add([EqChannel]::new($ch, $this)) } } @@ -66,15 +66,15 @@ class EqChannel : IRemote { [System.Collections.ArrayList]$cell [string]$eqId - EqChannel ([int]$index, [Object]$remote, [string]$eqId) : base ($index, $remote) { - $this.eqId = $eqId + EqChannel ([int]$index, [Object]$eq) : base ($index, $eq.remote) { + $this.eqId = $eq.identifier() - AddFloatMembers -PARAMS @('trim', 'delay') + if ($eq.kindOfEq -eq 'Bus') { AddFloatMembers -PARAMS @('trim', 'delay') } $this.cell = @() $cellCount = $this.remote.kind.cells for ($c = 0; $c -lt $cellCount; $c++) { - $this.cell.Add([EqCell]::new($c, $remote, $this.identifier())) + $this.cell.Add([EqCell]::new($c, $this.remote, $this.identifier())) } }