<?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>one button, two longpress timers</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42130/one-button-two-longpress-timers</link><description>Hello! I&amp;#39;m trying to program a code using just one button. 
 I&amp;#39;m using BSP_BUTTON_ACTION_LONG_PUSH (5) and MY_BSP_BUTTON_ACTION_LONG_PUSH (3) [which is exactly the same as BSP_BUTTON_ACTION_LONG_PUSH but with different timeout]. Both of them work perfectly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Jan 2019 23:33:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42130/one-button-two-longpress-timers" /><item><title>RE: one button, two longpress timers</title><link>https://devzone.nordicsemi.com/thread/163859?ContentTypeID=1</link><pubDate>Thu, 03 Jan 2019 23:33:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b1cae48-320d-43a2-a599-4a51a125a907</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;The source code is all published - so you can look at it and see exactly what&amp;nbsp;it does!&lt;/p&gt;
&lt;p&gt;I suspect the &amp;quot;problem&amp;quot; is that this was never intended to do what you are trying to do - it is not designed to support more than one &amp;quot;Long Push&amp;quot;.&lt;/p&gt;
&lt;p&gt;You are going to have to define your own case; eg,&amp;nbsp;&lt;strong&gt;BSP_BUTTON_ACTION_REALLY_LONG_PUSH&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>