last week
This commit is contained in:
@@ -65,6 +65,7 @@ void Serial::initSerialPort(const QString comport){
|
||||
}
|
||||
else{
|
||||
qDebug() << "STM32串口打开成功";
|
||||
emit STM32Connected(true, "");
|
||||
}
|
||||
} else {
|
||||
if(comport == "/dev/ttyAS5"){
|
||||
@@ -72,6 +73,7 @@ void Serial::initSerialPort(const QString comport){
|
||||
}
|
||||
else{
|
||||
qDebug() << "STM32串口打开失败:" << serial->errorString();
|
||||
emit STM32Connected(false, serial->errorString());
|
||||
}
|
||||
}
|
||||
this->FPGARecDataSavePtr=NULL;
|
||||
@@ -257,8 +259,15 @@ void Serial::readFPGAData(QByteArray data) {
|
||||
memcpy(dataFPGA_1B8,recData.constData(),12);
|
||||
emit getFPGAXXXDay(dataFPGA_1B8);
|
||||
break;
|
||||
|
||||
case READ_BUILD_DAT: {
|
||||
int fpgaBuildDat = 0;
|
||||
fpgaBuildDat = recData[7];
|
||||
emit FPGABuildDat(fpgaBuildDat);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -104,6 +104,9 @@ signals:
|
||||
void resendFPGAData(int,int,unsigned char *,int,int);
|
||||
void sendQueueData(int,int,unsigned char *,int,int);
|
||||
void progress(int,int);
|
||||
void FPGABuildDat(int buildTime);
|
||||
|
||||
void STM32Connected(bool ok, QString errorMsg);
|
||||
|
||||
private:
|
||||
void sendDataToFPGA(int,int,unsigned char*,int);
|
||||
|
||||
Reference in New Issue
Block a user