This commit is contained in:
canpadawan
2016-06-15 18:40:36 +02:00
parent c3c6ff3acd
commit 65528fdf12
2 changed files with 19 additions and 10 deletions
+16 -8
View File
@@ -5,6 +5,7 @@
#include <QTimer>
#include <QSettings>
#if 0
SerialWorker::SerialWorker(CANFrameModel *model, int base) : CANConnection(model, base)
{
qDebug() << "Serial Worker constructor";
@@ -576,15 +577,7 @@ void SerialWorker::updatePortName(QString portName)
}
}
int SerialWorker::getNumBuses()
{
return 2;
}
QString SerialWorker::getConnTypeName()
{
return QString("GVRET");
}
void SerialWorker::updateBusSettings(CANBus bus)
{
@@ -638,3 +631,18 @@ void SerialWorker::updateBusSettings(CANBus bus)
updateBaudRates(can0Baud,can1Baud);
}
/************************************/
int SerialWorker::getNumBuses()
{
return 2;
}
QString SerialWorker::getConnTypeName()
{
return QString("GVRET");
}
#endif
+3 -2
View File
@@ -8,7 +8,7 @@
#include <QTimer>
#include "can_structs.h"
#include "canframemodel.h"
#include "canconnection.h"
//#include "canconnection_old.h"
namespace SERIALSTATE {
@@ -30,6 +30,7 @@ enum STATE //keep this enum synchronized with the Arduino firmware project
}
#if 0
using namespace SERIALSTATE;
class SerialWorker : public CANConnection
{
@@ -84,5 +85,5 @@ private:
void procRXChar(unsigned char);
void sendCommValidation();
};
#endif
#endif // SERIALTHREAD_H