Skip to content

Commit 9791d5c

Browse files
neel1998CloudyPadmal
authored andcommitted
PWM working fine (#1837)
1 parent 8e02c26 commit 9791d5c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/main/java/io/pslab/activity/WaveGeneratorActivity.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,7 @@ public void onClick(View view) {
456456
double dutySqr4 = ((double) WaveGeneratorCommon.wave.get(WaveConst.SQR4).get(WaveConst.DUTY)) / 100;
457457
double phaseSqr4 = (double) WaveGeneratorCommon.wave.get(WaveConst.SQR4).get(WaveConst.PHASE) / 360;
458458

459-
scienceLab.sqrPWM(freqSqr1, dutySqr1, phaseSqr2, dutySqr2, phaseSqr3, dutySqr3, phaseSqr4, dutySqr4, true);
460-
scienceLab.setState(WaveGeneratorCommon.state);
459+
scienceLab.sqrPWM(freqSqr1, dutySqr1, phaseSqr2, dutySqr2, phaseSqr3, dutySqr3, phaseSqr4, dutySqr4, false);
461460
}
462461

463462
waveDialog.show();

0 commit comments

Comments
 (0)