mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-30 15:52:12 +01:00
Switch back to 256 byte packets and 0xFF pad the end
This commit is contained in:
parent
03cfb1453a
commit
c26154f303
@ -155,8 +155,7 @@ int32_t transactionsStarted = 0;
|
|||||||
static int32_t transmitData(uint8_t * data, int32_t length)
|
static int32_t transmitData(uint8_t * data, int32_t length)
|
||||||
{
|
{
|
||||||
memcpy(tx_buffer,data,length);
|
memcpy(tx_buffer,data,length);
|
||||||
memset(tx_buffer + length, 0xfe, sizeof(tx_buffer) - length);
|
memset(tx_buffer + length, 0xff, sizeof(tx_buffer) - length);
|
||||||
// memset(tx_buffer, 0x3d, sizeof(tx_buffer));
|
|
||||||
int32_t retval = 0;
|
int32_t retval = 0;
|
||||||
|
|
||||||
transactionsStarted++;
|
transactionsStarted++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user