Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP_Frsky_Telem: remove allocation and partial initialisation in get_t… #13371

Closed
wants to merge 1 commit into from

Conversation

peterbarker
Copy link
Contributor

…elem_data

The way this is structured we will never call "init" on the object.

Callers must already handle the case that "false" is returned.

The GCS library unconditionally creates this object.

…elem_data

The way this is structured we will never call "init" on the object.

Callers must already handle the case that "false" is returned.

The GCS library unconditionally creates this object.
@WickedShell
Copy link
Contributor

The GCS library unconditionally creates this object.

It also deletes it again though if init failed. (Which is nice as it's a fairly large object).

I'd agree this PR makes sense though, as this skips out on init'ing the object.

@tridge
Copy link
Contributor

tridge commented Jan 28, 2020

this would break fport

@tridge tridge closed this Jan 28, 2020
@peterbarker peterbarker deleted the pr/frsky-init branch May 4, 2020 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants