mirror of https://github.com/ArduPilot/ardupilot
Sub: eliminate global static GCS_MAVLINK::send_home_all
This commit is contained in:
parent
1be52495f1
commit
e9845fd593
|
@ -16,6 +16,9 @@ public:
|
|||
GCS_MAVLINK_Sub &chan(const uint8_t ofs) override {
|
||||
return _chan[ofs];
|
||||
};
|
||||
const GCS_MAVLINK_Sub &chan(const uint8_t ofs) const override {
|
||||
return _chan[ofs];
|
||||
};
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ bool Sub::set_home(const Location& loc, bool lock)
|
|||
Log_Write_Home_And_Origin();
|
||||
|
||||
// send new home location to GCS
|
||||
GCS_MAVLINK::send_home_all(loc);
|
||||
gcs().send_home(loc);
|
||||
|
||||
// return success
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue