// 鼠标 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"]){