mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
OP-616 Fixes wrong HW version being displayed.
This commit is contained in:
parent
6c030482a5
commit
01c910cd2b
@ -111,7 +111,7 @@ void deviceWidget::populate()
|
|||||||
// display a nice icon:
|
// display a nice icon:
|
||||||
myDevice->gVDevice->scene()->clear();
|
myDevice->gVDevice->scene()->clear();
|
||||||
myDevice->lblDevName->setText(deviceDescriptorStruct::idToBoardName(id));
|
myDevice->lblDevName->setText(deviceDescriptorStruct::idToBoardName(id));
|
||||||
myDevice->lblHWRev->setText(QString(tr("HW Revision: "))+QString::number(id & 0x0011, 16));
|
myDevice->lblHWRev->setText(QString(tr("HW Revision: "))+QString::number(id & 0x00FF, 16));
|
||||||
|
|
||||||
devicePic = new QGraphicsSvgItem();
|
devicePic = new QGraphicsSvgItem();
|
||||||
devicePic->setSharedRenderer(new QSvgRenderer());
|
devicePic->setSharedRenderer(new QSvgRenderer());
|
||||||
|
@ -73,7 +73,7 @@ void runningDeviceWidget::populate()
|
|||||||
|
|
||||||
myDevice->lblDeviceID->setText(QString("Device ID: ") + QString::number(id, 16));
|
myDevice->lblDeviceID->setText(QString("Device ID: ") + QString::number(id, 16));
|
||||||
myDevice->lblBoardName->setText(deviceDescriptorStruct::idToBoardName(id));
|
myDevice->lblBoardName->setText(deviceDescriptorStruct::idToBoardName(id));
|
||||||
myDevice->lblHWRev->setText(QString(tr("HW Revision: "))+QString::number(id & 0x0011, 16));
|
myDevice->lblHWRev->setText(QString(tr("HW Revision: "))+QString::number(id & 0x00FF, 16));
|
||||||
qDebug()<<"CRC"<<utilMngr->getFirmwareCRC();
|
qDebug()<<"CRC"<<utilMngr->getFirmwareCRC();
|
||||||
myDevice->lblCRC->setText(QString(tr("Firmware CRC: "))+QVariant(utilMngr->getFirmwareCRC()).toString());
|
myDevice->lblCRC->setText(QString(tr("Firmware CRC: "))+QVariant(utilMngr->getFirmwareCRC()).toString());
|
||||||
// DeviceID tells us what sort of HW we have detected:
|
// DeviceID tells us what sort of HW we have detected:
|
||||||
|
Loading…
Reference in New Issue
Block a user