fossasia/pslab-android

Oscilloscope: Graph doesn't clear after deselecting the In-Built MIC

Closed this issue · 1 comments

Actual Behaviour
If one toggles the In-Built MIC ON by clicking on the radio button, and then turns it OFF the same way, the plot of the waveform still remains on the graph.

Expected Behaviour
Ideally, the graph should be cleared whenever a channel is turned OFF.

Steps to reproduce it

  • Turn the In-Built MIC feature ON using the radio button.
  • Turn it OFF the same way.
  • One would observe that the plot for the input through the MIC is still there on the graph.

Screenshots of the issue
The following is a screenshot of the Oscilloscope screen after following the aforementioned steps: -

Screenshot_20240603_163514

Would you like to work on the issue?
Yes

Note
I've found this issue with the In-Built MIC only.
@marcnause Could you please find out if it exists for all the other channels as well ?

@AsCress Yes, same behavior for CH1, CH2, CH3 and PSLab MIC.

Screenshot_20240603-191820
Screenshot_20240603-191840
Screenshot_20240603-191929
Screenshot_20240603-192117