<?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>HID Keyboard Example Modification</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62723/hid-keyboard-example-modification</link><description>Hello, 
 I&amp;#39;ve been playing around with the nrf52 DK (sdk 16.0.0, s132). I&amp;#39;m trying to add volume up/volume down functionality to the example. I found this source code from an earlier SDK and I&amp;#39;ve been trying to follow the changes in SDK 16.0.0 https:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Jun 2020 13:07:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62723/hid-keyboard-example-modification" /><item><title>RE: HID Keyboard Example Modification</title><link>https://devzone.nordicsemi.com/thread/255783?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 13:07:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e747fe4b-ef0d-440d-91b6-03dff4bb9db6</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It seems like the error code is 0x07 (NRF_ERROR_INVALID_PARAM), and that this comes from the call to&amp;nbsp;ble_hids_inp_rep_send() in&amp;nbsp;&lt;span&gt;consumer_control_send(). Looking at the source code in the SDK, this function will return this error if the&amp;nbsp;rep_index parameter is not smaller than the configured&amp;nbsp;p_hids-&amp;gt;inp_rep_count.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In your&amp;nbsp;hids_init() function, you set the count to 1 (hids_init_obj.inp_rep_count = 1), while you have defined INPUT_CONTROL_KEYS:INDEX to be 1 (i.e. not smaller than 1). Increasing the config should solve this issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>