A first Try on Serial.

This commit is contained in:
Hiro Protagonist 2017-03-30 18:46:59 +13:00
parent e57d11f713
commit 02be71c3c5
2 changed files with 3 additions and 2 deletions

View file

@ -174,6 +174,9 @@ void MainWindow::updateCameraList( unsigned int num_cameras ) {
void MainWindow::fillSerialPorts() {
ui->serialSelector->clear();
QList<QSerialPortInfo> ports = comm.getPorts();
qDebug() << ports.length();
// Fill Combo Box with Serial Ports
for ( QSerialPortInfo info : comm.getPorts() ) {
ui->cameraSelector->addItem( info.portName() );

View file

@ -5,8 +5,6 @@ SerialCommunicator::SerialCommunicator( QObject * parent ) : QObject( parent ),
const QList<QSerialPortInfo> &SerialCommunicator::getPorts() {
ports = QSerialPortInfo::availablePorts();
qDebug() << ports.length();
return ports;
}