add: split PacketResponseNG status to status and reason
This commit is contained in:
1 parent
350ed787e1
commit
96d462acee
8 files changed
+36
-16
No files matched your search
@@ -481,6 +481,7 @@ __attribute__((force_align_arg_pointer))
|
||||
uint16_t length = rx_raw.pre.length;
|
||||
rx.ng = rx_raw.pre.ng;
|
||||
rx.status = rx_raw.pre.status;
|
||||
rx.reason = rx_raw.pre.reason;
|
||||
rx.cmd = rx_raw.pre.cmd;
|
||||
|
||||
if (rx.magic == RESPONSENG_PREAMBLE_MAGIC) { // New style NG reply
|
||||
|
||||
@@ -371,6 +371,9 @@ static int l_WaitForResponseTimeout(lua_State *L) {
|
||||
memcpy(foo + n, &resp.status, sizeof(resp.status));
|
||||
n += sizeof(resp.status);
|
||||
|
||||
memcpy(foo + n, &resp.reason, sizeof(resp.reason));
|
||||
n += sizeof(resp.reason);
|
||||
|
||||
memcpy(foo + n, &resp.crc, sizeof(resp.crc));
|
||||
n += sizeof(resp.crc);
|
||||
|
||||
|
||||
Reference in new issue
Block a user