1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

Switch back to 256 byte packets and 0xFF pad the end

This commit is contained in:
James Cotton 2012-02-02 11:40:49 -06:00
parent 03cfb1453a
commit c26154f303

View File

@ -155,8 +155,7 @@ int32_t transactionsStarted = 0;
static int32_t transmitData(uint8_t * data, int32_t length)
{
memcpy(tx_buffer,data,length);
memset(tx_buffer + length, 0xfe, sizeof(tx_buffer) - length);
// memset(tx_buffer, 0x3d, sizeof(tx_buffer));
memset(tx_buffer + length, 0xff, sizeof(tx_buffer) - length);
int32_t retval = 0;
transactionsStarted++;