Skip to content

Commit a0b571c

Browse files
committed
Fixed some bugs with opening and closing the scope and the faster running channel 0
1 parent f5a8d3f commit a0b571c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

it.baeyens.arduino.monitor/src/it/baeyens/arduino/monitor/views/ScopeListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public void stackEmpty(Oscilloscope scope, int channel) {
3636
if (!fStack.isEmpty()) {
3737
oldValue = fStack.remove().intValue();
3838
}
39-
myScope.setValue(0, oldValue);
39+
// myScope.setValue(0, oldValue);
4040
}
4141
};
4242

it.baeyens.arduino.monitor/src/multichannel/Oscilloscope.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -451,10 +451,10 @@ else if (chan[channel].height > 2)
451451
}
452452

453453
protected void widgetDisposed(DisposeEvent e) {
454-
bg.dispose();
455-
for (int channel = 0; channel < chan.length; channel++) {
456-
chan[channel].fg.dispose();
457-
}
454+
// bg.dispose();
455+
// for (int channel = 0; channel < chan.length; channel++) {
456+
// chan[channel].fg.dispose();
457+
// }
458458
}
459459

460460
protected int ConvertValueToScreenPosition(int Value, int ScreenHeight) {
@@ -1098,4 +1098,5 @@ public OscilloscopeDispatcher getDispatcher(int channel) {
10981098
public void setDispatcher(int channel, OscilloscopeDispatcher dispatcher) {
10991099
chan[channel].dispatcher = dispatcher;
11001100
}
1101+
11011102
}

0 commit comments

Comments
 (0)