Add Send/Recv gauges, fix tick loop to consume without BLE
- Four gauges: Send A/B (commanded) and Recv A/B (device-reported) - State.LastSentA/B tracks what would be sent after limiting - ConsumeTick always runs; only SendB0 gated on IsConnected - Stream queues drain correctly in dev mode (no box) - Tray icon hot state works without BLE connected - Removed strength text label, widened form to 420x360
This commit is contained in:
@@ -16,6 +16,7 @@ public class State
|
||||
public readonly ConcurrentQueue<WaveFrame> StreamB = new();
|
||||
|
||||
public int ActualA, ActualB;
|
||||
public int LastSentA, LastSentB;
|
||||
|
||||
public int MaxStrength = 200;
|
||||
public LimitMode LimitMode = LimitMode.Clamp;
|
||||
@@ -99,6 +100,8 @@ public class State
|
||||
: (byte)Math.Clamp(desired, 0, limit);
|
||||
var valA = ApplyLimit(DesiredA);
|
||||
var valB = ApplyLimit(DesiredB);
|
||||
LastSentA = valA;
|
||||
LastSentB = valB;
|
||||
DirtyA = false;
|
||||
DirtyB = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user