mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
Fix an extra byte being sent between the HoTT data and the checksum.
This commit is contained in:
parent
ee5d7e9d1f
commit
c73488b9a8
1 changed files with 2 additions and 2 deletions
|
@ -221,7 +221,7 @@ static void hottV4Respond(uint8_t *data, uint8_t size) {
|
||||||
uint16_t crc = 0;
|
uint16_t crc = 0;
|
||||||
uint8_t i;
|
uint8_t i;
|
||||||
|
|
||||||
for (i = 0; i < size; i++) {
|
for (i = 0; i < size - 1; i++) {
|
||||||
crc += data[i];
|
crc += data[i];
|
||||||
hottV4SerialWrite(data[i]);
|
hottV4SerialWrite(data[i]);
|
||||||
|
|
||||||
|
@ -242,7 +242,7 @@ static void hottV4SerialWrite(uint8_t c) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void configureHoTTTelemetryPort(void) {
|
void configureHoTTTelemetryPort(void) {
|
||||||
// TODO set speed here to 19200
|
// TODO set speed here to 19200?
|
||||||
serialSetMode(core.telemport, MODE_RX);
|
serialSetMode(core.telemport, MODE_RX);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue