Modified the way that the serial port is opened to hopefully be more cross platform.

This commit is contained in:
Collin Kidder
2015-05-13 20:00:59 -04:00
parent 60e5b323cf
commit b634024fb2
4 changed files with 33 additions and 22 deletions
+3 -1
View File
@@ -3,6 +3,7 @@
#include <QMainWindow>
#include <QSerialPort>
#include <QSerialPortInfo>
#include "canframemodel.h"
#include "can_structs.h"
#include "graphingwindow.h"
@@ -37,13 +38,14 @@ public slots:
void gotFrame(CANFrame *frame);
signals:
void sendSerialPort(QString portName);
void sendSerialPort(QSerialPortInfo &port);
void updateBaudRates(int, int);
void sendCANFrame(const CANFrame *, int);
private:
Ui::MainWindow *ui;
CANFrameModel *model;
QList<QSerialPortInfo> ports;
QThread serialWorkerThread;
QByteArray inputBuffer;
GraphingWindow *graphingWindow;