<?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>Current comsumption during button pressed and don&amp;#39;t let go</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2032/current-comsumption-during-button-pressed-and-don-t-let-go</link><description>Hi all! 
 I got a little problem with my ble device.
That is: my device takes system_off mode as initial mode, when being pressed the button, it will wake up and start advertising (just the same as the ble_app_hrs example). 
 And the problem is: I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Apr 2014 11:37:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2032/current-comsumption-during-button-pressed-and-don-t-let-go" /><item><title>RE: Current comsumption during button pressed and don't let go</title><link>https://devzone.nordicsemi.com/thread/8721?ContentTypeID=1</link><pubDate>Tue, 01 Apr 2014 11:37:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:158049db-9eb6-4bc3-a3d2-0004595005a5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi kk,&lt;/p&gt;
&lt;p&gt;The 4mA means the CPU haven&amp;#39;t entered sleep mode yet.&lt;/p&gt;
&lt;p&gt;Have you cleared the event register before you enter the loop ?
Also it&amp;#39;s not a good idea to have a loop for sleep inside the interrupt handler, you would need a higher priority to wake the chip up.&lt;/p&gt;
&lt;p&gt;I would suggest you to catch the pulse when you release the button instead of when you pressing it (for example instead of GPIO_PIN_CNF_SENSE_High you use GPIO_PIN_CNF_SENSE_Low  )
So that the chip only wake up when you release the button.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>