mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-24 00:35:34 +03:00
Add setting name to the MSP2_COMMON_SETTING_INFO message (#5133)
Allows to enumerate all the settings and get the setting names. It is the only way to do so.
This commit is contained in:
parent
4f646ca06a
commit
6e70eee04b
2 changed files with 5 additions and 1 deletions
|
@ -3012,6 +3012,10 @@ static bool mspSettingInfoCommand(sbuf_t *dst, sbuf_t *src)
|
|||
return false;
|
||||
}
|
||||
|
||||
char name_buf[SETTING_MAX_WORD_LENGTH+1];
|
||||
settingGetName(setting, name_buf);
|
||||
sbufWriteDataSafe(dst, name_buf, strlen(name_buf) + 1);
|
||||
|
||||
// Parameter Group ID
|
||||
sbufWriteU16(dst, settingGetPgn(setting));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue