bins variable was unused, removed

This commit is contained in:
Mashintime 2023-01-16 17:45:06 -05:00
parent 94b4889478
commit 72d412891e

View file

@ -68,7 +68,8 @@ Spectrum.prototype.drawFFT = function(bins) {
this.ctx.stroke();
}
Spectrum.prototype.drawSpectrum = function(bins) {
//Spectrum.prototype.drawSpectrum = function(bins) {
Spectrum.prototype.drawSpectrum = function() {
var width = this.ctx.canvas.width;
var height = this.ctx.canvas.height;
@ -242,7 +243,8 @@ Spectrum.prototype.addData = function(data) {
this.ctx_wf.fillRect(0, 0, this.wf.width, this.wf.height);
this.imagedata = this.ctx_wf.createImageData(data.length, 1);
}
this.drawSpectrum(data);
//this.drawSpectrum(data);
this.drawSpectrum();
this.addWaterfallRow(data);
this.resize();
}