diff --git a/src/main/telemetry/hott.c b/src/main/telemetry/hott.c index 65f2b79da1..eee6014c44 100644 --- a/src/main/telemetry/hott.c +++ b/src/main/telemetry/hott.c @@ -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; }