mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-13 11:29:56 +03:00
[mspv2] pass "flags" field back to sender, define ILMI flag (#10464)
This commit is contained in:
parent
180d337dbd
commit
9fb51e0655
2 changed files with 7 additions and 6 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue