Skip to content

Commit

Permalink
Fix Windows Build
Browse files Browse the repository at this point in the history
  • Loading branch information
Fishwaldo committed Feb 22, 2020
1 parent d1ce229 commit 26d6a9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ozwadmin-main/startup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ Startup::Startup(QWidget *parent) :
QObject::connect(ui->startlocal, &QPushButton::clicked, this, &Startup::localPressed);
QObject::connect(ui->startremote, &QPushButton::clicked, this, &Startup::remotePressed);
QSettings settings;
#ifdef Q_OS_MACOS
#if defined(Q_OS_MACOS)
ui->serialport->setText(settings.value("connection/serialport", "/dev/cu.SLAB_USBtoUART").toString());
#elif Q_OS_WIN
#elif defined(Q_OS_WIN)
ui->serialport->setText(settings.value("connection/serialport", "COM1").toString());
#else
ui->serialport->setText(settings.value("connection/serialport", "/dev/ttyUSB0").toString());
Expand Down

0 comments on commit 26d6a9c

Please sign in to comment.