mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
uncrustified
This commit is contained in:
parent
3dbdd76225
commit
db926f289d
@ -639,6 +639,7 @@ void ConfigStabilizationWidget::onBoardConnected()
|
||||
void ConfigStabilizationWidget::stabBankChanged(int index)
|
||||
{
|
||||
bool dirty = isDirty();
|
||||
|
||||
disconnect(this, SIGNAL(widgetContentsChanged(QWidget *)), this, SLOT(processLinkedWidgets(QWidget *)));
|
||||
|
||||
updateObjectFromThrottleCurve();
|
||||
|
@ -241,7 +241,7 @@ void VehicleConfigurationHelper::applyHardwareConfiguration()
|
||||
AuxMagSettings *magSettings = AuxMagSettings::GetInstance(m_uavoManager);
|
||||
Q_ASSERT(magSettings);
|
||||
AuxMagSettings::DataFields magsData = magSettings->getData();
|
||||
magsData.Type = AuxMagSettings::TYPE_GPSV9;
|
||||
magsData.Type = AuxMagSettings::TYPE_GPSV9;
|
||||
magsData.Usage = AuxMagSettings::USAGE_AUXONLY;
|
||||
magSettings->setData(magsData);
|
||||
addModifiedObject(magSettings, tr("Writing External Mag sensor settings"));
|
||||
@ -255,7 +255,7 @@ void VehicleConfigurationHelper::applyHardwareConfiguration()
|
||||
AuxMagSettings *magSettings = AuxMagSettings::GetInstance(m_uavoManager);
|
||||
Q_ASSERT(magSettings);
|
||||
AuxMagSettings::DataFields magsData = magSettings->getData();
|
||||
magsData.Type = AuxMagSettings::TYPE_FLEXI;
|
||||
magsData.Type = AuxMagSettings::TYPE_FLEXI;
|
||||
magsData.Usage = AuxMagSettings::USAGE_AUXONLY;
|
||||
magSettings->setData(magsData);
|
||||
addModifiedObject(magSettings, tr("Writing I2C Mag sensor settings"));
|
||||
|
@ -574,7 +574,7 @@ OP_DFU::Status DFUObject::StatusRequest()
|
||||
buf[8] = 0;
|
||||
buf[9] = 0;
|
||||
|
||||
int result = sendData(buf, BUF_LEN);
|
||||
int result = sendData(buf, BUF_LEN);
|
||||
int retry_cnt = 0;
|
||||
const int MaxSendRetry = 10, SendRetryIntervalMS = 1000;
|
||||
while (result < 0 && retry_cnt < MaxSendRetry) {
|
||||
|
Loading…
Reference in New Issue
Block a user