Skip to content

Commit

Permalink
fixed message queue for simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Jan 17, 2020
1 parent 21ce906 commit 672ac28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/eez/platform/simulator/cmsis_os.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ osEvent osMessageGet(osMessageQId queue_id, uint32_t millisec) {
if (millisec == 0) millisec = 1;

while (queue_id->tail == queue_id->head) {
if (queue_id->overflow) {
queue_id->overflow = 0;
}

#ifdef __EMSCRIPTEN__
return {
osOK,
Expand Down

0 comments on commit 672ac28

Please sign in to comment.