1
0
Fork 0
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:
Michel Pastor 2019-10-17 23:44:29 +02:00 committed by GitHub
parent 4f646ca06a
commit 6e70eee04b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -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));