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
+2 -1
View File
@@ -3,6 +3,7 @@
#include <QObject>
#include <QSerialPort>
#include <QSerialPortInfo>
#include "can_structs.h"
enum STATE //keep this enum synchronized with the Arduino firmware project
@@ -33,7 +34,7 @@ private slots: //we receive things in slots
void readSerialData();
public slots:
void setSerialPort(QString);
void setSerialPort(QSerialPortInfo&);
void sendFrame(const CANFrame *, int);
void updateBaudRates(int, int);