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 authored and alteman committed Oct 18, 2022
1 parent bc8d1a4 commit a0b3838
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 @@ -9,7 +9,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 @@ -23,7 +23,7 @@ static int start()

static int timeout()
{
#if defined(PLATFORM_ESP32)
#if defined(PLATFORM_ESP32) || defined(PLATFORM_STM32)
if (sendFrame)
{
sendFrame = false;
Expand Down

0 comments on commit a0b3838

Please sign in to comment.