1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-13 19:40:27 +03:00

[mspv2] pass "flags" field back to sender, define ILMI flag (#10464)

This commit is contained in:
Jonathan Hudson 2024-11-13 18:22:57 +00:00 committed by GitHub
parent 180d337dbd
commit 9fb51e0655
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 6 deletions

View file

@ -4249,7 +4249,7 @@ mspResult_e mspFcProcessCommand(mspPacket_t *cmd, mspPacket_t *reply, mspPostPro
if (cmd->flags & MSP_FLAG_DONT_REPLY) { if (cmd->flags & MSP_FLAG_DONT_REPLY) {
ret = MSP_RESULT_NO_REPLY; ret = MSP_RESULT_NO_REPLY;
} }
reply->flags = cmd->flags;
reply->result = ret; reply->result = ret;
return ret; return ret;
} }

View file

@ -46,6 +46,7 @@ typedef struct mspPacket_s {
typedef enum { typedef enum {
MSP_FLAG_DONT_REPLY = (1 << 0), MSP_FLAG_DONT_REPLY = (1 << 0),
MSP_FLAG_ILMI = (1 << 1), // "In-Line Message identifier"
} mspFlags_e; } mspFlags_e;
struct serialPort_s; struct serialPort_s;