1
0
Fork 0
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:
Dominic Clifton 2014-04-07 21:41:57 +01:00
parent ee5d7e9d1f
commit c73488b9a8

View file

@ -221,7 +221,7 @@ static void hottV4Respond(uint8_t *data, uint8_t size) {
uint16_t crc = 0;
uint8_t i;
for (i = 0; i < size; i++) {
for (i = 0; i < size - 1; i++) {
crc += data[i];
hottV4SerialWrite(data[i]);
@ -242,7 +242,7 @@ static void hottV4SerialWrite(uint8_t c) {
}
void configureHoTTTelemetryPort(void) {
// TODO set speed here to 19200
// TODO set speed here to 19200?
serialSetMode(core.telemport, MODE_RX);
}