7
mirror of https://github.com/EEVengers/ThunderScope.git synced 2025-04-11 23:19:16 +00:00

math waveforms now show properly

This commit is contained in:
Jason Bonnell 2021-03-25 14:03:21 -04:00
parent ec6794d9a2
commit 5115ff7b35

View File

@ -19,16 +19,16 @@ class TriggerWidget extends React.Component<any, any> {
let w = this.props.mathWidget;
if(w.channel2 !== channelNumber) {
Plumber.getInstance().handleMath(w.mathEnabled, channelNumber, w.channel2, w.mathOperator);
this.props.dispatch({type: 'math/changeChannel1', payload: channelNumber });
}
this.props.dispatch({type: 'math/changeChannel1', payload: channelNumber });
}
changeChannel2 = (channelNumber: number) => {
let w = this.props.mathWidget;
if(w.channel1 !== channelNumber) {
Plumber.getInstance().handleMath(w.mathEnabled, w.channel1, channelNumber, w.mathOperator);
this.props.dispatch({type: 'math/changeChannel2', payload: channelNumber });
}
this.props.dispatch({type: 'math/changeChannel2', payload: channelNumber });
}
changeOperator = (operator: MathOperators) => {