1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

HoTT - Apply quick workaround to allow HoTT to work on hardware serial

ports, previously only softserial was working. - See #1021
This commit is contained in:
Dominic Clifton 2015-08-19 17:55:01 +01:00
parent 3878a7ea2c
commit 5142ff032a

View file

@ -426,7 +426,10 @@ static void hottCheckSerialData(uint32_t currentMicros)
static void hottSendTelemetryData(void) {
if (!hottIsSending) {
hottIsSending = true;
serialSetMode(hottPort, MODE_TX);
// FIXME temorary workaround for HoTT not working on Hardware serial ports due to hardware/softserial serial port initialisation differences
//serialSetMode(hottPort, MODE_TX);
closeSerialPort(hottPort);
hottPort = openSerialPort(portConfig->identifier, FUNCTION_TELEMETRY_HOTT, NULL, HOTT_BAUDRATE, MODE_TX, SERIAL_NOT_INVERTED);
hottMsgCrc = 0;
return;
}
@ -435,7 +438,10 @@ static void hottSendTelemetryData(void) {
hottMsg = NULL;
hottIsSending = false;
serialSetMode(hottPort, MODE_RX);
// FIXME temorary workaround for HoTT not working on Hardware serial ports due to hardware/softserial serial port initialisation differences
//serialSetMode(hottPort, MODE_RX);
closeSerialPort(hottPort);
hottPort = openSerialPort(portConfig->identifier, FUNCTION_TELEMETRY_HOTT, NULL, HOTT_BAUDRATE, MODE_RX, SERIAL_NOT_INVERTED);
flushHottRxBuffer();
return;
}