chore(cpn): upgrade to Ubuntu 22.04 and Qt 6.9.0 (#5986)
Co-authored-by: elecpower <elecpower@users.noreply.github.com> Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
This commit is contained in:
co-authored by
elecpower
raphaelcoeffic
parent
7264b28e62
commit
9e86a3ea84
@@ -441,17 +441,7 @@ void OpenTxSimulator::rotaryEncoderEvent(int steps)
|
||||
return;
|
||||
|
||||
setKey(key, 1);
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 4, 0))
|
||||
QTimer::singleShot(10, [this, key]() { setKey(key, 0); });
|
||||
#else
|
||||
QTimer *timer = new QTimer(this);
|
||||
timer->setSingleShot(true);
|
||||
connect(timer, &QTimer::timeout, [=]() {
|
||||
setKey(key, 0);
|
||||
timer->deleteLater();
|
||||
} );
|
||||
timer->start(10);
|
||||
#endif
|
||||
#endif // defined(ROTARY_ENCODER_NAVIGATION)
|
||||
}
|
||||
|
||||
@@ -534,12 +524,12 @@ void OpenTxSimulator::sendTelemetry(const uint8_t module, const uint8_t protocol
|
||||
case SIMU_TELEMETRY_PROTOCOL_FRSKY_SPORT:
|
||||
sportProcessTelemetryPacket(module,
|
||||
(uint8_t *)data.constData(),
|
||||
data.count());
|
||||
data.size());
|
||||
break;
|
||||
case SIMU_TELEMETRY_PROTOCOL_FRSKY_HUB:
|
||||
frskyDProcessPacket(module,
|
||||
(uint8_t *)data.constData(),
|
||||
data.count());
|
||||
data.size());
|
||||
break;
|
||||
case SIMU_TELEMETRY_PROTOCOL_FRSKY_HUB_OOB:
|
||||
// FrSky D telemetry is a stream which can span multiple
|
||||
@@ -563,7 +553,7 @@ void OpenTxSimulator::sendTelemetry(const uint8_t module, const uint8_t protocol
|
||||
case SIMU_TELEMETRY_PROTOCOL_CROSSFIRE:
|
||||
processCrossfireTelemetryFrame(module,
|
||||
(uint8_t *)data.constData(),
|
||||
data.count());
|
||||
data.size());
|
||||
break;
|
||||
default:
|
||||
// Do nothing
|
||||
|
||||
Reference in New Issue
Block a user