Browse Source

Bux Fixed on mainwindow related to _dmaLog and _dmaBuffer

Arash Aletayeb 3 months ago
parent
commit
b96f4e2661
  1. 4
      developHw.pro.user
  2. 6
      mainwindow.cpp
  3. 2
      mainwindow.h

4
developHw.pro.user

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject> <!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.10.0, 2024-12-14T16:37:35. --> <!-- Written by QtCreator 4.10.0, 2024-12-31T12:13:54. -->
<qtcreator> <qtcreator>
<data> <data>
<variable>EnvironmentId</variable> <variable>EnvironmentId</variable>
@ -100,7 +100,7 @@
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value>
<value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">true</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value> <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value>
</valuemap> </valuemap>

6
mainwindow.cpp

@ -1677,7 +1677,9 @@ void MainWindow::getFramePacket(QByteArray packet)
_mutex.lock(); _mutex.lock();
_dmaBuffer.push_back(packet); if(_dmaLog)
_dmaBuffer.push_back(packet);
if(_lastBuffer.size() != 0) if(_lastBuffer.size() != 0)
{ {
quint16 batchIdBuffer = ((static_cast<quint16>(_lastBuffer[128])) & 0x00FF) | quint16 batchIdBuffer = ((static_cast<quint16>(_lastBuffer[128])) & 0x00FF) |
@ -1991,7 +1993,7 @@ void MainWindow::logPcie(QString logPath, quint32 logCount, QLCDNumber* lcdCount
qApp->processEvents(); qApp->processEvents();
if(_dmaBuffer.size() == 0) if(_dmaBuffer.size() == 0)
{ {
std::this_thread::sleep_for(std::chrono::milliseconds(3)); //std::this_thread::sleep_for(std::chrono::milliseconds(3));
continue; continue;
} }
QByteArray temp; QByteArray temp;

2
mainwindow.h

@ -266,7 +266,7 @@ private:
QString _probeRomPath = "/home/os/hardware/ProbeRom"; QString _probeRomPath = "/home/os/hardware/ProbeRom";
QString _dynContrCurvesPath = "/home/os/hardware/Develop_HardwareTest/developHw/kernelParams/DynContrCurves.csv"; QString _dynContrCurvesPath = "/home/os/hardware/Develop_HardwareTest/developHw/kernelParams/DynContrCurves.csv";
QVector<QByteArray> _dmaBuffer; QList<QByteArray> _dmaBuffer;
QByteArray _lastBuffer; QByteArray _lastBuffer;
QList<QByteArray> _frame; QList<QByteArray> _frame;
QList<QByteArray> _bufferedFrame; QList<QByteArray> _bufferedFrame;

Loading…
Cancel
Save