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:
+4
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user