Skip to content

Commit

Permalink
Change of flush USB-CDC
Browse files Browse the repository at this point in the history
  • Loading branch information
matsujirushi committed Jan 8, 2025
1 parent a5a6dac commit 66089a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module/bg770a/Bg770aInterface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,14 +290,14 @@ namespace wiocellular
if (timeout > 0)
{
const auto start = millis();
delay(0);
yield();
timeout -= millis() - start;
if (timeout < 0)
timeout = 0;
}
else
{
delay(0);
yield();
}
xSemaphoreTake(MainUartReceived_, timeout >= 0 ? pdMS_TO_TICKS(timeout) : portMAX_DELAY); // FreeRTOS
}
Expand Down

0 comments on commit 66089a7

Please sign in to comment.