Skip to content
Snippets Groups Projects
Commit 7fddce63 authored by Armin Luntzer's avatar Armin Luntzer
Browse files

reserved byte in header is needed for all packets except write replies

parent 12849c79
No related branches found
No related tags found
No related merge requests found
...@@ -472,6 +472,8 @@ int rmap_build_hdr(struct rmap_pkt *pkt, uint8_t *hdr) ...@@ -472,6 +472,8 @@ int rmap_build_hdr(struct rmap_pkt *pkt, uint8_t *hdr)
} else if (!pkt->ri.cmd_resp && pkt->ri.cmd & RMAP_CMD_BIT_WRITE) { } else if (!pkt->ri.cmd_resp && pkt->ri.cmd & RMAP_CMD_BIT_WRITE) {
/* all headers have data length unless they are a write reply */ /* all headers have data length unless they are a write reply */
return n; return n;
} else {
hdr[n++] = 0x0; /* on other replies, this is a reserved field */
} }
hdr[n++] = (uint8_t) (pkt->data_len >> 16); /* data len MSB */ hdr[n++] = (uint8_t) (pkt->data_len >> 16); /* data len MSB */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment