mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
AndroidGCS Controller: Make sure to remove the callback on manual control
settings before updating it.
This commit is contained in:
parent
75ce520503
commit
335ccc54a3
@ -78,11 +78,11 @@ public class Controller extends ObjectManagerActivity {
|
|||||||
public void update(Observable observable, Object data) {
|
public void update(Observable observable, Object data) {
|
||||||
// Once we have updated settings we can active the GCS receiver mode
|
// Once we have updated settings we can active the GCS receiver mode
|
||||||
Log.d(TAG,"Got update from settings");
|
Log.d(TAG,"Got update from settings");
|
||||||
activateGcsReceiver();
|
|
||||||
UAVDataObject manualControlSettings = (UAVDataObject) objMngr.getObject("ManualControlSettings");
|
UAVDataObject manualControlSettings = (UAVDataObject) objMngr.getObject("ManualControlSettings");
|
||||||
if(manualControlSettings != null) {
|
if(manualControlSettings != null) {
|
||||||
manualControlSettings.removeUpdatedObserver(this);
|
manualControlSettings.removeUpdatedObserver(this);
|
||||||
}
|
}
|
||||||
|
activateGcsReceiver();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user