<?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>Problem When I Adding C File in Main.c</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33367/problem-when-i-adding-c-file-in-main-c</link><description>I created c file which name of Tus_Tarama.c 
 
 and main.c 
 
 
 When i adding Tus_Tarama file advertising is stop! Why am i customize blinky example!</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Apr 2018 11:59:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33367/problem-when-i-adding-c-file-in-main-c" /><item><title>RE: Problem When I Adding C File in Main.c</title><link>https://devzone.nordicsemi.com/thread/128233?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 11:59:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccb3fcad-1db1-44fa-9e2d-c98cfe048411</guid><dc:creator>rraa</dc:creator><description>&lt;p&gt;I solved problem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void kontrol(void)
{
  while(sifre)
    {
      nrf_gpio_pin_clear(PIN_OUT_2);
      nrf_delay_ms(1000);
      nrf_gpio_pin_set(PIN_OUT_2);
      nrf_delay_ms(1000);
      nrf_gpio_pin_clear(PIN_OUT_1);
      nrf_delay_ms(1000);
      nrf_gpio_pin_set(PIN_OUT_1);
      if(PIN_IN)  // adding this this line
      break;      // adding this line
    }
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem When I Adding C File in Main.c</title><link>https://devzone.nordicsemi.com/thread/128231?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 11:52:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1587a3b3-efc4-4615-99bf-df2ed1b7d0ba</guid><dc:creator>rraa</dc:creator><description>&lt;p&gt;Thanks it is work now.&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/turboj"&gt;Turbo J&lt;/a&gt;&amp;nbsp;But when i pressed button&amp;nbsp;device is disconnect. How can i choose this problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem When I Adding C File in Main.c</title><link>https://devzone.nordicsemi.com/thread/128218?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 10:55:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3d5a423-c9f4-453e-9e88-d50610a2780a</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;What do you think does think this line does:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;for(;;) __WFE();&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Remove that, and check again with a debugger.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>