D9协议调试
authorliangzhenying <867174124@qq.com>
Fri, 8 Nov 2024 08:16:35 +0000 (16:16 +0800)
committerliangzhenying <867174124@qq.com>
Fri, 8 Nov 2024 08:16:35 +0000 (16:16 +0800)
MouseSdk/AiMouseSdk/TlwMouseSdk/TlwMouseSdk.m
MouseSdk/MouseSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate
MouseSdk/MouseSdk.xcworkspace/xcuserdata/apple.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

index 3b40bec..606835a 100644 (file)
             [[data subdataWithRange:NSMakeRange(1, 1)] getBytes:&state length:1];
             BOOL success = state == 2;
             
-            [self showLog:[NSString stringWithFormat:@"语音开启回复 %@",@(success)]];
+            [self showLog:[NSString stringWithFormat:@"语音开启回复 %@",success ? @"成功":@"失败"]];
             if(self.openRecordCallBack)self.openRecordCallBack(success, nil);
             break;
         }
             uint8 state;
             [[data subdataWithRange:NSMakeRange(1, 1)] getBytes:&state length:1];
             BOOL success = state == 2;
-            [self showLog:[NSString stringWithFormat:@"语音停止回复 %@",@(success)]];
+            [self showLog:[NSString stringWithFormat:@"语音停止回复 %@",success ? @"成功":@"失败"]];
             if(self.closeRecordCallBaack)self.closeRecordCallBaack(success, nil);
             break;
         }
             uint8 state;
             [[data subdataWithRange:NSMakeRange(1, 1)] getBytes:&state length:1];
             BOOL success = state == 2;
-            [self showLog:[NSString stringWithFormat:@"设置DPI回复 %@",@(success)]];
+            [self showLog:[NSString stringWithFormat:@"设置DPI回复 %@",success ? @"成功":@"失败"]];
             if(self.setDpiCallBack)self.setDpiCallBack(success, nil);
             break;
         }
             uint8 state;
             [[data subdataWithRange:NSMakeRange(1, 1)] getBytes:&state length:1];
             BOOL success = state == 2;
-            [self showLog:[NSString stringWithFormat:@"设置滚轮开关回复 %@",@(success)]];
+            [self showLog:[NSString stringWithFormat:@"设置滚轮开关回复 %@",success ? @"成功":@"失败"]];
             if(self.setUrlStateCallBack)self.setUrlStateCallBack(success, nil);
             break;
         }
         {
             //语音开启回复
             uint8 state;
-            [[data subdataWithRange:NSMakeRange(6, 1)] getBytes:&state length:1];
+            [[data subdataWithRange:NSMakeRange(7, 1)] getBytes:&state length:1];
             BOOL success = state == 0;
-            [self showLog:[NSString stringWithFormat:@"语音开启回复 %@",@(success)]];
+            [self showLog:[NSString stringWithFormat:@"语音开启回复 %@",success ? @"成功":@"失败"]];
             if(self.openRecordCallBack)self.openRecordCallBack(true, nil);
             [self startRecord];
             break;
         {
             //语音停止回复
             uint8 state;
-            [[data subdataWithRange:NSMakeRange(6, 1)] getBytes:&state length:1];
+            [[data subdataWithRange:NSMakeRange(7, 1)] getBytes:&state length:1];
             BOOL success = state == 0;
             
-            [self showLog:[NSString stringWithFormat:@"语音停止回复 %@",@(success)]];
+            [self showLog:[NSString stringWithFormat:@"语音停止回复 %@",success ? @"成功":@"失败"]];
             [self stopRecord];
             if(self.closeRecordCallBaack)self.closeRecordCallBaack(success, nil);
             break;
         {
             //设置DPI回复
             uint8 state;
-            [[data subdataWithRange:NSMakeRange(6, 1)] getBytes:&state length:1];
+            [[data subdataWithRange:NSMakeRange(7, 1)] getBytes:&state length:1];
             BOOL success = state == 0;
             
-            [self showLog:[NSString stringWithFormat:@"设置DPI回复 %@",@(success)]];
+            [self showLog:[NSString stringWithFormat:@"设置DPI回复 %@",success ? @"成功":@"失败"]];
             if(self.setDpiCallBack)self.setDpiCallBack(true, nil);
             break;
         }
         {
             //设置滚轮开关
             uint8 state;
-            [[data subdataWithRange:NSMakeRange(6, 1)] getBytes:&state length:1];
+            [[data subdataWithRange:NSMakeRange(7, 1)] getBytes:&state length:1];
             BOOL success = state == 0;
             
-            [self showLog:[NSString stringWithFormat:@"设置滚轮开关回复 %@",@(success)]];
+            [self showLog:[NSString stringWithFormat:@"设置滚轮开关回复 %@",success ? @"成功":@"失败"]];
             if(self.setUrlStateCallBack)self.setUrlStateCallBack(true, nil);
             break;
         }
         {
             //查询
             uint8 state;
-            [[data subdataWithRange:NSMakeRange(6, 1)] getBytes:&state length:1];
+            [[data subdataWithRange:NSMakeRange(7, 1)] getBytes:&state length:1];
             [self showLog:[NSString stringWithFormat:@"查询滚轮设置回复 %@",@(state)]];
             if(self.getUrlStateCallBack)self.getUrlStateCallBack(state, nil);
             break;
index d8c11fe..eca5223 100644 (file)
Binary files a/MouseSdk/MouseSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate and b/MouseSdk/MouseSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate differ
index bcf5655..c3ddbcd 100644 (file)
             </Locations>
          </BreakpointContent>
       </BreakpointProxy>
-      <BreakpointProxy
-         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
-         <BreakpointContent
-            uuid = "31993B35-9DA9-4381-B863-11397B6D9184"
-            shouldBeEnabled = "Yes"
-            ignoreCount = "0"
-            continueAfterRunningActions = "No"
-            filePath = "AiMouseSdk/TlwMouseSdk/TlwMouseSdk.m"
-            startingColumnNumber = "9223372036854775807"
-            endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "22"
-            endingLineNumber = "22"
-            landmarkName = "-description"
-            landmarkType = "7">
-         </BreakpointContent>
-      </BreakpointProxy>
-      <BreakpointProxy
-         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
-         <BreakpointContent
-            uuid = "B9B9032E-D4BF-479C-B350-7D0E383A7C18"
-            shouldBeEnabled = "Yes"
-            ignoreCount = "0"
-            continueAfterRunningActions = "No"
-            filePath = "AiMouseSdk/TlwMouseSdk/TlwMouseSdk.m"
-            startingColumnNumber = "9223372036854775807"
-            endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "656"
-            endingLineNumber = "656"
-            landmarkName = "-hidReceiveDeviceData:"
-            landmarkType = "7">
-         </BreakpointContent>
-      </BreakpointProxy>
    </Breakpoints>
 </Bucket>