diff --git a/src/dataformatpanel.cpp b/src/dataformatpanel.cpp --- a/src/dataformatpanel.cpp +++ b/src/dataformatpanel.cpp @@ -21,12 +21,13 @@ #include "ui_dataformatpanel.h" #include +#include #include "utils.h" #include "floatswap.h" DataFormatPanel::DataFormatPanel(QSerialPort* port, - QList* channelBuffers, + ChannelManager* channelMan, QWidget *parent) : QWidget(parent), ui(new Ui::DataFormatPanel) @@ -34,7 +35,7 @@ DataFormatPanel::DataFormatPanel(QSerial ui->setupUi(this); serialPort = port; - _channelBuffers = channelBuffers; + _channelMan = channelMan; paused = false; // setup number format buttons @@ -319,6 +320,6 @@ template double DataFormatPa void DataFormatPanel::addChannelData(unsigned int channel, double* data, unsigned size) { - (*_channelBuffers)[channel]->addSamples(data, size); + _channelMan->addChannelData(channel, data, size); sampleCount += size; }