forked from Archive/PX4-Autopilot
Copy the correct number of bytes back for register read operations. Basic PX4IO comms are working now.
This commit is contained in:
parent
0589346ce6
commit
19b2e1de85
|
@ -233,7 +233,7 @@ rx_handle_packet(void)
|
|||
count = PKT_COUNT(dma_packet);
|
||||
|
||||
/* copy reply registers into DMA buffer */
|
||||
memcpy((void *)&dma_packet.regs[0], registers, count);
|
||||
memcpy((void *)&dma_packet.regs[0], registers, count * 2);
|
||||
dma_packet.count_code = count | PKT_CODE_SUCCESS;
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue