From 09a5161ae3043e63f285559170f7739840d62b4b Mon Sep 17 00:00:00 2001 From: Lauszus Date: Wed, 20 Oct 2021 11:46:34 +0000 Subject: [PATCH] deploy: efe8374fd99ab7fb81b918da16d30f2af8360b36 --- _b_t_d_8cpp_source.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_b_t_d_8cpp_source.html b/_b_t_d_8cpp_source.html index a18557dc..63c9ff5c 100644 --- a/_b_t_d_8cpp_source.html +++ b/_b_t_d_8cpp_source.html @@ -592,7 +592,7 @@ $(function() {
524  D_PrintHex<uint8_t > (classOfDevice[0], 0x80);
525 #endif
526 
-
527  if(pairWithWii && classOfDevice[2] == 0x00 && (classOfDevice[1] == 0x05) && (classOfDevice[0] & 0x0C)) { // See http://wiibrew.org/wiki/Wiimote#SDP_information
+
527  if(pairWithWii && (classOfDevice[2] == 0x00) && ((classOfDevice[1] & 0x0F) == 0x05) && (classOfDevice[0] & 0x0C)) { // See http://wiibrew.org/wiki/Wiimote#SDP_information
528  checkRemoteName = true; // Check remote name to distinguish between the different controllers
529 
530  for(uint8_t j = 0; j < 6; j++)
@@ -600,7 +600,7 @@ $(function() {
532 
533  hci_set_flag(HCI_FLAG_DEVICE_FOUND);
534  break;
-
535  } else if(pairWithHIDDevice && (classOfDevice[1] & 0x0F) == 0x05 && (classOfDevice[0] & 0xC8)) { // Check if it is a mouse, keyboard or a gamepad - see: http://bluetooth-pentest.narod.ru/software/bluetooth_class_of_device-service_generator.html
+
535  } else if(pairWithHIDDevice && ((classOfDevice[1] & 0x0F) == 0x05) && (classOfDevice[0] & 0xC8)) { // Check if it is a mouse, keyboard or a gamepad - see: http://bluetooth-pentest.narod.ru/software/bluetooth_class_of_device-service_generator.html
536 #ifdef DEBUG_USB_HOST
537  checkRemoteName = true; // Used to print name in the serial monitor if serial debugging is enabled
538 
@@ -664,7 +664,7 @@ $(function() {
596  for(uint8_t i = 0; i < 3; i++)
597  classOfDevice[i] = hcibuf[i + 8];
598 
-
599  if((classOfDevice[1] & 0x0F) == 0x05 && (classOfDevice[0] & 0xC8)) { // Check if it is a mouse, keyboard or a gamepad
+
599  if(((classOfDevice[1] & 0x0F) == 0x05) && (classOfDevice[0] & 0xC8)) { // Check if it is a mouse, keyboard or a gamepad
600 #ifdef DEBUG_USB_HOST
601  if(classOfDevice[0] & 0x80)
602  Notify(PSTR("\r\nMouse is connecting"), 0x80);