1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

LP-245 config: remove unused method saveccpmUpdate() from ccpm config panel

This commit is contained in:
Philippe Renon 2016-09-20 01:51:45 +02:00 committed by Philippe Renon
parent f14d8906be
commit cb11b0cfd7
2 changed files with 1 additions and 20 deletions

View File

@ -1074,23 +1074,6 @@ void ConfigCcpmWidget::setMixer()
updatingToHardware = false;
}
/**
Send ccpm type to the board and request saving to SD card
*/
void ConfigCcpmWidget::saveccpmUpdate()
{
if (SwashLvlConfigurationInProgress) {
return;
}
ShowDisclaimer(0);
// Send update so that the latest value is saved
// sendccpmUpdate();
setMixer();
UAVDataObject *obj = dynamic_cast<UAVDataObject *>(getObjectManager()->getObject(QString("MixerSettings")));
Q_ASSERT(obj);
saveObjectToSD(obj);
}
void ConfigCcpmWidget::resizeEvent(QResizeEvent *event)
{
Q_UNUSED(event);

View File

@ -31,8 +31,7 @@
#include "cfg_vehicletypes/vehicleconfig.h"
#include "../uavobjectwidgetutils/configtaskwidget.h"
#include "extensionsystem/pluginmanager.h"
#include "uavobjectmanager.h"
#include "uavobject.h"
class Ui_CcpmConfigWidget;
@ -69,7 +68,6 @@ public:
public slots:
void getMixer();
void setMixer();
void saveccpmUpdate();
protected:
void showEvent(QShowEvent *event);