From 1fb06a7c3a181cabc4bd48c114f699fee8cab9b6 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Wed, 15 Dec 2021 12:23:02 +0100 Subject: [PATCH] Do not use DMA based send in passthrough mode The USB buffer could be located and CCM, which does not work with DMA. --- radio/src/cli.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/radio/src/cli.cpp b/radio/src/cli.cpp index cdb28420a..19dfc1be9 100644 --- a/radio/src/cli.cpp +++ b/radio/src/cli.cpp @@ -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)