mirror of
https://github.com/EEVengers/ThunderScope.git
synced 2025-04-11 23:19:16 +00:00
bugfix
This commit is contained in:
parent
d1e94e5f86
commit
f18edc67cc
Software/waveview/src
@ -108,7 +108,7 @@ const VerticalWidgetInitialState = {
|
||||
unit: VoltageUnit.MilliVolt
|
||||
}
|
||||
],
|
||||
getDataChannelOrder: [1, 2, 3, 4]
|
||||
getDataChannelOrder: [1]
|
||||
};
|
||||
|
||||
export default VerticalWidgetInitialState;
|
@ -32,7 +32,7 @@ class TestPoints {
|
||||
bodyCheck: () => true,
|
||||
cmd: CMD.CMD_SetCh,
|
||||
id: 0,
|
||||
writeData: [state.verticalWidget.getDataChannelOrder.length, 0]
|
||||
writeData: [1, 0, 0, 0]
|
||||
}
|
||||
|
||||
this.setFileArgs = {
|
||||
@ -71,7 +71,8 @@ class TestPoints {
|
||||
if(this.setChDone && this.setFileDone && this.setWinDone) {
|
||||
let state = store.getState();
|
||||
let base = state.horizontalWidget.horizontalTimeBase.coarse;
|
||||
let xLimit = convertTime(base.value, base.unit, TimeUnit.NanoSecond);
|
||||
let dCount = DefaultValues.divisions.time;
|
||||
let xLimit = dCount * convertTime(base.value, base.unit, TimeUnit.NanoSecond);
|
||||
let doMath = state.mathWidget.mathEnabled as boolean;
|
||||
let order = state.verticalWidget.getDataChannelOrder as number[];
|
||||
|
||||
@ -112,6 +113,7 @@ class TestPoints {
|
||||
}
|
||||
|
||||
getData() {
|
||||
console.log(this.scope_data);
|
||||
return this.scope_data;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user