1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

OP-1628 Uncrustify

This commit is contained in:
m_thread 2015-01-26 23:03:39 +01:00
parent 373ed5df36
commit 205a2d7b7a
2 changed files with 8 additions and 6 deletions

View File

@ -52,7 +52,8 @@ bool TelemetryManager::isConnected() const
return m_connectionState == TELEMETRY_CONNECTED;
}
TelemetryManager::ConnectionState TelemetryManager::connectionState() const {
TelemetryManager::ConnectionState TelemetryManager::connectionState() const
{
return m_connectionState;
}

View File

@ -47,9 +47,9 @@
const int UploaderGadgetWidget::BOARD_EVENT_TIMEOUT = 20000;
const int UploaderGadgetWidget::AUTOUPDATE_CLOSE_TIMEOUT = 7000;
const int UploaderGadgetWidget::REBOOT_TIMEOUT = 20000;
const int UploaderGadgetWidget::ERASE_TIMEOUT = 20000;
const int UploaderGadgetWidget::BOOTLOADER_TIMEOUT = 20000;
const int UploaderGadgetWidget::REBOOT_TIMEOUT = 20000;
const int UploaderGadgetWidget::ERASE_TIMEOUT = 20000;
const int UploaderGadgetWidget::BOOTLOADER_TIMEOUT = 20000;
TimedDialog::TimedDialog(const QString &title, const QString &labelText, int timeout, QWidget *parent, Qt::WindowFlags flags) :
QProgressDialog(labelText, tr("Cancel"), 0, timeout, parent, flags), bar(new QProgressBar(this))
@ -672,18 +672,19 @@ bool UploaderGadgetWidget::autoUpdateCapable()
bool UploaderGadgetWidget::autoUpdate(bool erase)
{
ExtensionSystem::PluginManager *pluginManager = ExtensionSystem::PluginManager::instance();
Q_ASSERT(pluginManager);
TelemetryManager *telemetryManager = pluginManager->getObject<TelemetryManager>();
Q_ASSERT(telemetryManager);
if (USBMonitor::instance()->availableDevices(0x20a0, -1, -1, -1).length() > 0 &&
telemetryManager->connectionState() != TelemetryManager::TELEMETRY_CONNECTED) {
telemetryManager->connectionState() != TelemetryManager::TELEMETRY_CONNECTED) {
// Wait for the board to completely connect
ResultEventLoop eventLoop;
connect(telemetryManager, SIGNAL(connected()), &eventLoop, SLOT(success()));
if (telemetryManager->connectionState() != TelemetryManager::TELEMETRY_CONNECTED
&& eventLoop.run(REBOOT_TIMEOUT) != 0) {
&& eventLoop.run(REBOOT_TIMEOUT) != 0) {
emit progressUpdate(FAILURE, QVariant(tr("Timed out while waiting for a board to be fully connected!")));
emit autoUpdateFailed();
return false;