27 _serial = std::make_unique<QSerialPort>();
28 _serial->setPortName(_device);
29 if (!_serial->open(QIODevice::ReadWrite)) {
31 uint32_t retries = 60;
33 qCDebug(SerialGPSTransportLog) <<
"Cannot open device... retrying";
35 if (_serial->open(QIODevice::ReadWrite)) {
36 _serial->clearError();
42 qCWarning(SerialGPSTransportLog) <<
"GPS: Failed to open Serial Device" << _device << _serial->errorString();