<?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>Keil Debugging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8459/keil-debugging</link><description>I&amp;#39;m working based on the HRS central application, and have run into an issue where my if statement is entered even though the condition is not met. In this case, the nrf attempts to perform open scanning even though I have whitelist scanning enabled.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 31 Jul 2015 14:13:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8459/keil-debugging" /><item><title>RE: Keil Debugging</title><link>https://devzone.nordicsemi.com/thread/30820?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2015 14:13:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e300ce33-322e-40bf-8b52-b82c58d88bdb</guid><dc:creator>danbujak</dc:creator><description>&lt;p&gt;I noticed that turning off optimization fixed the issue. I declared m_scan_mode in the sample as volatile and now it&amp;#39;s working.&lt;/p&gt;
&lt;p&gt;static volatile ble_scan_mode_t     m_scan_mode = BLE_WHITELIST_SCAN;    /**&amp;lt; Scan mode used by application. */&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil Debugging</title><link>https://devzone.nordicsemi.com/thread/30819?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2015 08:47:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfc54be7-bde3-4d93-bffe-b8a61e530d90</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Strange. What SoftDevice version and SDK version are you using? Could you update your question with your complete project so I can test it here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>