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:
parent
f14d8906be
commit
cb11b0cfd7
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user