Skip to content

Commit

Permalink
Move uart writes from ISR on STM32
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Oct 13, 2022
1 parent 8586df2 commit 9f8e030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/CRSF/devCRSF_rx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extern void HandleUARTin();

void ICACHE_RAM_ATTR crsfRCFrameAvailable()
{
#if defined(PLATFORM_ESP32)
#if defined(PLATFORM_ESP32) || defined(PLATFORM_STM32)
sendFrame = true;
#else
crsf.sendRCFrameToFC();
Expand All @@ -27,7 +27,7 @@ static int timeout()
{
if (connectionState != serialUpdate)
{
#if defined(PLATFORM_ESP32)
#if defined(PLATFORM_ESP32) || defined(PLATFORM_STM32)
if (sendFrame)
{
sendFrame = false;
Expand Down

0 comments on commit 9f8e030

Please sign in to comment.