bug in oscilloscopeClass.oscilloscope.collectData

loop was doing silly things