mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
deploy: efe8374fd9
This commit is contained in:
parent
3f77ae9a4c
commit
09a5161ae3
1 changed files with 3 additions and 3 deletions
|
@ -592,7 +592,7 @@ $(function() {
|
|||
<div class="line"><a name="l00524"></a><span class="lineno"> 524</span>  D_PrintHex<uint8_t > (classOfDevice[0], 0x80);</div>
|
||||
<div class="line"><a name="l00525"></a><span class="lineno"> 525</span> <span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00526"></a><span class="lineno"> 526</span>  </div>
|
||||
<div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  <span class="keywordflow">if</span>(<a class="code" href="class_b_t_d.html#a0c8cc2a2dd2cda3e760b8b4c1a2d169c">pairWithWii</a> && classOfDevice[2] == 0x00 && (classOfDevice[1] == 0x05) && (classOfDevice[0] & 0x0C)) { <span class="comment">// See http://wiibrew.org/wiki/Wiimote#SDP_information</span></div>
|
||||
<div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  <span class="keywordflow">if</span>(<a class="code" href="class_b_t_d.html#a0c8cc2a2dd2cda3e760b8b4c1a2d169c">pairWithWii</a> && (classOfDevice[2] == 0x00) && ((classOfDevice[1] & 0x0F) == 0x05) && (classOfDevice[0] & 0x0C)) { <span class="comment">// See http://wiibrew.org/wiki/Wiimote#SDP_information</span></div>
|
||||
<div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  checkRemoteName = <span class="keyword">true</span>; <span class="comment">// Check remote name to distinguish between the different controllers</span></div>
|
||||
<div class="line"><a name="l00529"></a><span class="lineno"> 529</span>  </div>
|
||||
<div class="line"><a name="l00530"></a><span class="lineno"> 530</span>  <span class="keywordflow">for</span>(uint8_t j = 0; j < 6; j++)</div>
|
||||
|
@ -600,7 +600,7 @@ $(function() {
|
|||
<div class="line"><a name="l00532"></a><span class="lineno"> 532</span>  </div>
|
||||
<div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  <a class="code" href="_b_t_d_8h.html#ada46cc57bb9134769989b1b18bdac525">hci_set_flag</a>(<a class="code" href="_b_t_d_8h.html#a5ac3c55b54eff968d2327185a7e644ba">HCI_FLAG_DEVICE_FOUND</a>);</div>
|
||||
<div class="line"><a name="l00534"></a><span class="lineno"> 534</span>  <span class="keywordflow">break</span>;</div>
|
||||
<div class="line"><a name="l00535"></a><span class="lineno"> 535</span>  } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(<a class="code" href="class_b_t_d.html#a2aa418d820fb6b877ea079e0436a518e">pairWithHIDDevice</a> && (classOfDevice[1] & 0x0F) == 0x05 && (classOfDevice[0] & 0xC8)) { <span class="comment">// Check if it is a mouse, keyboard or a gamepad - see: http://bluetooth-pentest.narod.ru/software/bluetooth_class_of_device-service_generator.html</span></div>
|
||||
<div class="line"><a name="l00535"></a><span class="lineno"> 535</span>  } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(<a class="code" href="class_b_t_d.html#a2aa418d820fb6b877ea079e0436a518e">pairWithHIDDevice</a> && ((classOfDevice[1] & 0x0F) == 0x05) && (classOfDevice[0] & 0xC8)) { <span class="comment">// Check if it is a mouse, keyboard or a gamepad - see: http://bluetooth-pentest.narod.ru/software/bluetooth_class_of_device-service_generator.html</span></div>
|
||||
<div class="line"><a name="l00536"></a><span class="lineno"> 536</span> <span class="preprocessor">#ifdef DEBUG_USB_HOST</span></div>
|
||||
<div class="line"><a name="l00537"></a><span class="lineno"> 537</span>  checkRemoteName = <span class="keyword">true</span>; <span class="comment">// Used to print name in the serial monitor if serial debugging is enabled</span></div>
|
||||
<div class="line"><a name="l00538"></a><span class="lineno"> 538</span>  </div>
|
||||
|
@ -664,7 +664,7 @@ $(function() {
|
|||
<div class="line"><a name="l00596"></a><span class="lineno"> 596</span>  <span class="keywordflow">for</span>(uint8_t i = 0; i < 3; i++)</div>
|
||||
<div class="line"><a name="l00597"></a><span class="lineno"> 597</span>  classOfDevice[i] = hcibuf[i + 8];</div>
|
||||
<div class="line"><a name="l00598"></a><span class="lineno"> 598</span>  </div>
|
||||
<div class="line"><a name="l00599"></a><span class="lineno"> 599</span>  <span class="keywordflow">if</span>((classOfDevice[1] & 0x0F) == 0x05 && (classOfDevice[0] & 0xC8)) { <span class="comment">// Check if it is a mouse, keyboard or a gamepad</span></div>
|
||||
<div class="line"><a name="l00599"></a><span class="lineno"> 599</span>  <span class="keywordflow">if</span>(((classOfDevice[1] & 0x0F) == 0x05) && (classOfDevice[0] & 0xC8)) { <span class="comment">// Check if it is a mouse, keyboard or a gamepad</span></div>
|
||||
<div class="line"><a name="l00600"></a><span class="lineno"> 600</span> <span class="preprocessor">#ifdef DEBUG_USB_HOST</span></div>
|
||||
<div class="line"><a name="l00601"></a><span class="lineno"> 601</span>  <span class="keywordflow">if</span>(classOfDevice[0] & 0x80)</div>
|
||||
<div class="line"><a name="l00602"></a><span class="lineno"> 602</span>  <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">"\r\nMouse is connecting"</span>), 0x80);</div>
|
||||
|
|
Loading…
Reference in a new issue