mirror of
https://github.com/vale981/Taevitas
synced 2025-03-04 17:11:40 -05:00
A first Try on Serial.
This commit is contained in:
parent
e57d11f713
commit
02be71c3c5
2 changed files with 3 additions and 2 deletions
|
@ -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() );
|
||||
|
|
|
@ -5,8 +5,6 @@ SerialCommunicator::SerialCommunicator( QObject * parent ) : QObject( parent ),
|
|||
|
||||
const QList<QSerialPortInfo> &SerialCommunicator::getPorts() {
|
||||
ports = QSerialPortInfo::availablePorts();
|
||||
qDebug() << ports.length();
|
||||
|
||||
return ports;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue