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:
parent
03cfb1453a
commit
c26154f303
@ -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++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user