Skip to content

Conversation

@philmoz
Copy link
Collaborator

@philmoz philmoz commented Jan 26, 2026

Fix stack overflow.

PR #6515 added a longer protocol name.

Fixes #7038

Applies to 2.12 and 3.0.

@philmoz philmoz added this to the 2.12.0 milestone Jan 26, 2026
@philmoz philmoz added bug/regression ↩️ A new version of EdgeTX broke something firmware General radio firmware issue, not colorlcd or B&W specific labels Jan 26, 2026
@pfeerick
Copy link
Member

pfeerick commented Jan 26, 2026

Ouch.

Hm, I'm out atm, but could we add something like this and do away with the need for tmp, etc? Something similar might be handy for in getProtoLabel() since returns a std::string also.

std::string getStringAtIndex(const char *const *s, int idx)
{
  return std::string(s[idx]);
}

rfProto.label = getStringAtIndex(STR_MULTI_PROTOCOLS, pdef->protocol);

@philmoz
Copy link
Collaborator Author

philmoz commented Jan 26, 2026

Ouch.

Hm, I'm out atm, but could we add something like this and do away with the need for tmp, etc? Something similar might be handy for in getProtoLabel() since returns a std::string also.

std::string getStringAtIndex(const char *const *s, int idx)
{
  return std::string(s[idx]);
}

rfProto.label = getStringAtIndex(STR_MULTI_PROTOCOLS, pdef->protocol);

Good suggestion. Done.

@pfeerick
Copy link
Member

Interesting, goes to show difference between OSes coming to play... prior to this, radio does not crash, Linux simulator does not crash, MacOS simulator does. Anyway radio still doesn't crash and looks to work.

@pfeerick pfeerick merged commit 0087e25 into main Jan 27, 2026
50 checks passed
@pfeerick pfeerick deleted the philmoz/fix-mpm-crash branch January 27, 2026 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug/regression ↩️ A new version of EdgeTX broke something firmware General radio firmware issue, not colorlcd or B&W specific

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2.12 Companion crashes when selecting Multi as external module

3 participants