一键上网版mac地址修改
authorliangzhenying <867174124@qq.com>
Fri, 20 Sep 2024 10:07:05 +0000 (18:07 +0800)
committerliangzhenying <867174124@qq.com>
Fri, 20 Sep 2024 10:07:05 +0000 (18:07 +0800)
MouseSdk/AiMouseSdk/NMouseSdk/NMouseSdk.m
MouseSdk/MouseSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate

index 379d0cb..091a263 100644 (file)
 //  鼠标  0x020001f0ff0000
 //  sn1  0xb52c00bba30d5540
 //  sn2  0xb52c01bba30d5540
+//    62DF3D553297
     [self showLog:[NSString stringWithFormat:@"[receive][usb][info] %@",text]];
     if ([text hasPrefix:@"B52C00"]) {
         [self showLog:[NSString stringWithFormat:@"[receive][usb][info] %@",text]];
         if (self.getSn1CallBack) {
-            self.getSn1CallBack([text substringFromIndex:6], nil);
+            self.getSn1CallBack([text substringWithRange:NSMakeRange(6, 8)], nil);
         }
     }
     else if ([text hasPrefix:@"B52C01"]) {
         [self showLog:[NSString stringWithFormat:@"[receive][usb][info] %@",text]];
         if (self.getSn2CallBack) {
-            self.getSn2CallBack([text substringFromIndex:6], nil);
+            self.getSn2CallBack([text substringWithRange:NSMakeRange(6, 4)], nil);
         }
     }
     else if([text hasPrefix:@"B5200443"]){
index 5249e7a..966de6a 100644 (file)
Binary files a/MouseSdk/MouseSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate and b/MouseSdk/MouseSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate differ