<?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>The two timers conflict</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11112/the-two-timers-conflict</link><description>Greeting , Nordic team , i have some questions about my project.
First , my hardware and software is following:
nrf51422 (pca10028)
SDK 9.0
SoftDevice S110 
 My project is a data logger that fetch the sensor data to mobile phone by BLE and display</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Jan 2016 12:57:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11112/the-two-timers-conflict" /><item><title>RE: The two timers conflict</title><link>https://devzone.nordicsemi.com/thread/41619?ContentTypeID=1</link><pubDate>Mon, 04 Jan 2016 12:57:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5583dbaa-f461-4034-84aa-eb029a4938c6</guid><dc:creator>hong min</dc:creator><description>&lt;p&gt;the temp timeout handler&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void temp_meas_timeout_handler(void * p_context)
{   
    temperature_measurement_send();
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;the led timeout handler&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void led_timeout_handler(void * p_context)
{
  if(led_flashing_flag)
  {
	    LEDS_INVERT( (1&amp;lt;&amp;lt;22) );
  }
  else
  {
	     LEDS_OFF( (1&amp;lt;&amp;lt;22) );
  } 
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;the main :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static uint32_t finalData;

int main (void)
{
 
   ble_setting();
   uart_setting();
   
   while(1)
   {
       float tempBuffer[100];
       float tempSum;
       for(int i =0 ; i&amp;lt;100 ; i++)
       {
             temperBuffer[i]=fetchTemperature();
             nrf_delay_ms(20);
             tempSum+= temperBuffer[i];
       }
      
       finalData=tempSum/100.0;
       nrf_delay_ms(100);
       printf(&amp;quot;The temp is %.2f\r\n&amp;quot; , finalData);
   }

}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The two timers conflict</title><link>https://devzone.nordicsemi.com/thread/41617?ContentTypeID=1</link><pubDate>Mon, 04 Jan 2016 12:25:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff43cb53-3ac6-4848-aa02-4a156ad24624</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Can you check if temp_meas_timeout_handler is called at all? Can you also post the code for led_timeout_handler?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The two timers conflict</title><link>https://devzone.nordicsemi.com/thread/41618?ContentTypeID=1</link><pubDate>Mon, 04 Jan 2016 10:25:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fecb8ec0-5b1d-4a6d-b7e1-4ffca647687b</guid><dc:creator>hong min</dc:creator><description>&lt;p&gt;Yes, i have add the timer limitation. thanks you reply&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The two timers conflict</title><link>https://devzone.nordicsemi.com/thread/41616?ContentTypeID=1</link><pubDate>Mon, 04 Jan 2016 10:21:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f9abbc9-21b4-4ebc-bbb9-d4af635d7821</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Did you increase APP_TIMER_MAX_TIMERS ? Can you check if temp_meas_timeout_handler is called at all?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>