# Microbit ignoring radio message when in "while" loop

**URL:** https://forum.makecode.com/t/microbit-ignoring-radio-message-when-in-while-loop/5100
**Category:** micro:bit
**Created:** [December 17, 2020, 5:01pm UTC](https://forum.makecode.com/t/microbit-ignoring-radio-message-when-in-while-loop/5100 "2020-12-17T17:01:13Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![joshkeys19](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/joshkeys19/32/2182_2.png) [@joshkeys19](https://forum.makecode.com/u/joshkeys19)
#### Post date: [December 18, 2020, 4:46pm UTC](https://forum.makecode.com/t/microbit-ignoring-radio-message-when-in-while-loop/5100/2 "2020-12-18T16:46:08Z")

</div>

Hi wolfman,

Try using a basic.pause instead of a wait. The pause allows the micro:bit scheduler to check for any events whereas I believe the waitMicros will only check if you sleep longer than 50000 us. You can see this in scheduler.cpp:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/d/d91d3c1bc6cb54e974203c66ceba55e912504570.png)

There you see that when you use the basic.pause( which calls sleep\_ms), it will call the scheduler. If you use waitMicros, it calls the sleep\_us and will internally call the sleep\_ms if us \>50000.

So in short, try using basic.pause instead to allow the scheduler to check for radio events.

---

_[View the full topic](https://forum.makecode.com/t/microbit-ignoring-radio-message-when-in-while-loop/5100)._
