Copy the correct number of bytes back for register read operations. Basic PX4IO comms are working now.

This commit is contained in:
px4dev 2013-07-06 00:00:44 -07:00
parent 0589346ce6
commit 19b2e1de85
1 changed files with 1 additions and 1 deletions

View File

@ -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;