mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
uncrustify
This commit is contained in:
parent
0f2d65a8e4
commit
8218becdac
@ -74,11 +74,11 @@ int32_t LoggingStart(void)
|
||||
SettingsUpdatedCb(DebugLogSettingsHandle());
|
||||
|
||||
UAVObjEvent ev = {
|
||||
.obj = DebugLogSettingsHandle(),
|
||||
.instId = 0,
|
||||
.event = EV_UPDATED_PERIODIC,
|
||||
.lowPriority = true,
|
||||
};
|
||||
.obj = DebugLogSettingsHandle(),
|
||||
.instId = 0,
|
||||
.event = EV_UPDATED_PERIODIC,
|
||||
.lowPriority = true,
|
||||
};
|
||||
EventPeriodicCallbackCreate(&ev, StatusUpdatedCb, 1000);
|
||||
// invoke a periodic dispatcher callback - the event struct is a dummy, it could be filled with anything!
|
||||
StatusUpdatedCb(&ev);
|
||||
|
@ -72,7 +72,7 @@ ThermalCalibrationModel::ThermalCalibrationModel(QObject *parent) :
|
||||
}
|
||||
void ThermalCalibrationModel::init()
|
||||
{
|
||||
if(!m_initDone){
|
||||
if (!m_initDone) {
|
||||
m_initDone = true;
|
||||
setStartEnabled(true);
|
||||
setEndEnabled(false);
|
||||
|
@ -236,7 +236,7 @@ ConfigRevoWidget::ConfigRevoWidget(QWidget *parent) :
|
||||
connect(m_thermalCalibrationModel, SIGNAL(temperatureChanged(QString)), m_ui->textTemperature, SLOT(setText(QString)));
|
||||
connect(m_thermalCalibrationModel, SIGNAL(temperatureGradientChanged(QString)), m_ui->textThermalGradient, SLOT(setText(QString)));
|
||||
connect(m_thermalCalibrationModel, SIGNAL(progressChanged(int)), m_ui->thermalBiasProgress, SLOT(setValue(int)));
|
||||
//note: init for m_thermalCalibrationModel is done in showEvent to prevent cases wiht "Start" button not enabled due to some itming issue.
|
||||
// note: init for m_thermalCalibrationModel is done in showEvent to prevent cases wiht "Start" button not enabled due to some itming issue.
|
||||
|
||||
// Connect the signals
|
||||
connect(m_ui->accelBiasStart, SIGNAL(clicked()), this, SLOT(doStartAccelGyroBiasCalibration()));
|
||||
|
@ -136,7 +136,7 @@ void DeviceWidget::populate()
|
||||
status("Ready...", STATUSICON_INFO);
|
||||
QString fwFileName = getDevFirmwarePath();
|
||||
QFile fwFile(fwFileName);
|
||||
if(fwFile.exists()){
|
||||
if (fwFile.exists()) {
|
||||
loadFirmware(fwFileName);
|
||||
}
|
||||
}
|
||||
@ -261,6 +261,7 @@ void DeviceWidget::status(QString str, StatusIcon ic)
|
||||
void DeviceWidget::loadFirmware()
|
||||
{
|
||||
QString file = setOpenFileName();
|
||||
|
||||
loadFirmware(file);
|
||||
}
|
||||
|
||||
@ -525,6 +526,7 @@ QString DeviceWidget::getDevFirmwarePath()
|
||||
{
|
||||
QDir fwDirectory;
|
||||
QString fwDirectoryStr;
|
||||
|
||||
fwDirectoryStr = QCoreApplication::applicationDirPath();
|
||||
fwDirectory = QDir(fwDirectoryStr);
|
||||
#ifdef Q_OS_WIN
|
||||
@ -553,6 +555,7 @@ QString DeviceWidget::setOpenFileName()
|
||||
tr("Select firmware file"),
|
||||
fwDirectoryStr,
|
||||
tr("Firmware Files (*.opfw *.bin)"));
|
||||
|
||||
return fileName;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user