1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

Uploader Plugin- Added installed ports debug information.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@482 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
zedamota 2010-04-11 15:38:21 +00:00 committed by zedamota
parent 98f5901be2
commit a862f9638e
2 changed files with 11 additions and 0 deletions

View File

@ -258,6 +258,16 @@ QWidget *UploaderGadgetOptionsPage::createPage(QWidget *parent)
QList<QextPortInfo> ports =QextSerialEnumerator ::getPorts(); QList<QextPortInfo> ports =QextSerialEnumerator ::getPorts();
qSort(ports.begin(), ports.end()); qSort(ports.begin(), ports.end());
qDebug() << "List of ports:";
for (int i = 0; i < ports.size(); i++) {
qDebug() << "port name:" << ports.at(i).portName;
qDebug() << "friendly name:" << ports.at(i).friendName;
qDebug() << "physical name:" << ports.at(i).physName;
qDebug() << "enumerator name:" << ports.at(i).enumName;
qDebug() << "vendor ID:" << QString::number(ports.at(i).vendorID, 16);
qDebug() << "product ID:" << QString::number(ports.at(i).productID, 16);
qDebug() << "===================================";
}
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
for (int i = 0; i < ports.size(); i++) { for (int i = 0; i < ports.size(); i++) {
m_portCB->addItem((QString)ports.at(i).portName.toLocal8Bit().constData()); m_portCB->addItem((QString)ports.at(i).portName.toLocal8Bit().constData());

View File

@ -31,6 +31,7 @@
#include "coreplugin/dialogs/ioptionspage.h" #include "coreplugin/dialogs/ioptionspage.h"
#include "QString" #include "QString"
#include <QStringList> #include <QStringList>
#include <QDebug>
namespace Core { namespace Core {
class IUAVGadgetConfiguration; class IUAVGadgetConfiguration;
} }