<?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>Negative power value bugs in ble_dtm.c</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12301/negative-power-value-bugs-in-ble_dtm-c</link><description>ble_dtm.c has some bugs related to signed integer representation which prevent negative power (less than 0 dBm) from being requested in the vendor specific message. 
 
 
 First, this bug is not yet patched: devzone.nordicsemi.com/.../44704 
 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Sep 2016 07:57:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12301/negative-power-value-bugs-in-ble_dtm-c" /><item><title>RE: Negative power value bugs in ble_dtm.c</title><link>https://devzone.nordicsemi.com/thread/46513?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2016 07:57:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07193a7a-ddd3-4188-a6ef-177d11ce3f79</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;It looks that this has been fixed in SDK12, can you please confirm.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Negative power value bugs in ble_dtm.c</title><link>https://devzone.nordicsemi.com/thread/46514?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2016 08:18:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5960a66-1c8b-4221-a00b-e010c2a3cb26</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Thank you for your thorough report. I didn&amp;#39;t catch the line in dtm_cmd_put() in main.c. The issue has been reported.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Negative power value bugs in ble_dtm.c</title><link>https://devzone.nordicsemi.com/thread/46512?ContentTypeID=1</link><pubDate>Thu, 03 Mar 2016 17:26:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa721ad9-9dcd-4221-ba63-e219bc06ed77</guid><dc:creator>Mark Rages</dc:creator><description>&lt;p&gt;@martinbl, I edited the question with an example.  I am using gcc, but I don&amp;#39;t see how a conforming C compiler can do anything different with those values.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Negative power value bugs in ble_dtm.c</title><link>https://devzone.nordicsemi.com/thread/46511?ContentTypeID=1</link><pubDate>Thu, 03 Mar 2016 13:44:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3c76b46-8216-4bac-8be1-1d0a2f6a6e3e</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;It works fine with me. No matter what negative value I send to &lt;code&gt;dtm_set_txpower()&lt;/code&gt; &lt;code&gt;new_power8&lt;/code&gt; seems to get the correct value and always pass the &amp;quot;&amp;quot;if (new_power8 &amp;gt; 4)&amp;quot; test. I&amp;#39;ll agree that it&amp;#39;s a little sketchy though. What SDK do you use? Could it be a compiler issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>