Do not use DMA based send in passthrough mode

The USB buffer could be located and CCM, which does not work with DMA.
This commit is contained in:
Raphael Coeffic
2021-12-17 15:17:49 +01:00
parent db264a0c29
commit 1fb06a7c3a
+4 -2
View File
@@ -916,8 +916,10 @@ int cliSet(const char **argv)
#if defined(ENABLE_SERIAL_PASSTHROUGH)
static void spInternalModuleTx(uint8_t* buf, uint32_t len)
{
intmoduleSendBuffer(buf, len);
intmoduleWaitForTxCompleted();
while (len > 0) {
intmoduleSendByte(*(buf++));
len--;
}
}
static void spInternalModuleSetBaudRate(uint32_t baud)