mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
OP-515 took CPU serial from the devices screen
This commit is contained in:
parent
6910bbb4f1
commit
b67b6221d1
@ -143,10 +143,6 @@ void deviceWidget::populate()
|
|||||||
myDevice->lblMaxCode->setText(QString("Max code size: ") +QString::number(m_dfu->devices[deviceID].SizeOfCode));
|
myDevice->lblMaxCode->setText(QString("Max code size: ") +QString::number(m_dfu->devices[deviceID].SizeOfCode));
|
||||||
myDevice->lblCRC->setText(QString("Firmware CRC: ") + QString::number(m_dfu->devices[deviceID].FW_CRC));
|
myDevice->lblCRC->setText(QString("Firmware CRC: ") + QString::number(m_dfu->devices[deviceID].FW_CRC));
|
||||||
myDevice->lblBLVer->setText(QString("BL version: ") + QString::number(m_dfu->devices[deviceID].BL_Version));
|
myDevice->lblBLVer->setText(QString("BL version: ") + QString::number(m_dfu->devices[deviceID].BL_Version));
|
||||||
ExtensionSystem::PluginManager *pm = ExtensionSystem::PluginManager::instance();
|
|
||||||
UAVObjectUtilManager* utilMngr = pm->getObject<UAVObjectUtilManager>();
|
|
||||||
QString serial = utilMngr->getBoardCPUSerial().toHex();
|
|
||||||
myDevice->lblCPU->setText(QString("CPU serial number: "+serial));
|
|
||||||
int size=((OP_DFU::device)m_dfu->devices[deviceID]).SizeOfDesc;
|
int size=((OP_DFU::device)m_dfu->devices[deviceID]).SizeOfDesc;
|
||||||
m_dfu->enterDFU(deviceID);
|
m_dfu->enterDFU(deviceID);
|
||||||
QByteArray desc = m_dfu->DownloadDescriptionAsBA(size);
|
QByteArray desc = m_dfu->DownloadDescriptionAsBA(size);
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>516</width>
|
<width>516</width>
|
||||||
<height>507</height>
|
<height>582</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -58,13 +58,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="lblCPU">
|
|
||||||
<property name="text">
|
|
||||||
<string>lblCPU</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="lblAccess">
|
<widget class="QLabel" name="lblAccess">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user