mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Checksum range changed from 1
This commit is contained in:
parent
74d175edfb
commit
0c026a237a
1 changed files with 3 additions and 3 deletions
|
@ -44,12 +44,12 @@ static void trampWriteBuf(uint8_t *buf)
|
|||
serialWriteBuf(trampSerialPort, buf, 16);
|
||||
}
|
||||
|
||||
static uint8_t trampChecksum(uint8_t *buf)
|
||||
static uint8_t trampChecksum(uint8_t *trampBuf)
|
||||
{
|
||||
uint8_t cksum = 0;
|
||||
|
||||
for (int i = 0 ; i < 14 ; i++)
|
||||
cksum += buf[i];
|
||||
for (int i = 1 ; i < 14 ; i++)
|
||||
cksum += trampBuf[i];
|
||||
|
||||
return cksum;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue