<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Temperature read on nRF52811 SDK_15.3</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55258/temperature-read-on-nrf52811-sdk_15-3</link><description>So I looked at the example of the temprature read and I got the following code: 
 
 But the problem I got is with the: while (NRF_TEMP-&amp;gt;EVENTS_DATARDY == 0), I don&amp;#39;t want to keep checking a while loop for and risk getting stuck here for like all time</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 08 Dec 2019 05:53:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55258/temperature-read-on-nrf52811-sdk_15-3" /><item><title>RE: Temperature read on nRF52811 SDK_15.3</title><link>https://devzone.nordicsemi.com/thread/224281?ContentTypeID=1</link><pubDate>Sun, 08 Dec 2019 05:53:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b697c3f-3ffc-4ef9-a24b-18f4480268b0</guid><dc:creator>Ameer Usman</dc:creator><description>&lt;p&gt;Thanks Kenneth, ill add the counter for extra insurance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Temperature read on nRF52811 SDK_15.3</title><link>https://devzone.nordicsemi.com/thread/223958?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2019 14:25:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60233c5b-146e-4c8a-a265-748bbe188045</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We are not aware of any reason why&amp;nbsp;NRF_TEMP-&amp;gt;EVENTS_DATARDY should not trigger. However if you are conserned you can always add a down counter in your&amp;nbsp;while (NRF_TEMP-&amp;gt;EVENTS_DATARDY == 0) to break; out of the while loop if the event is not received. It will take one measurement.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>