fix
parent
d64cc5f5df
commit
6861777cf6
|
@ -5,6 +5,16 @@
|
|||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<PostActions>
|
||||
<ExecutionAction
|
||||
ActionType = "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction">
|
||||
<ActionContent
|
||||
title = "Run Script"
|
||||
scriptText = "# Type a script or drag a script file from your workspace to insert its path. "
|
||||
shellToInvoke = "/bin/sh /Users/lcz/Library/Developer/Xcode/DerivedData/Brokenithm-iOS-cgxmbwpfkvphpyfkehetlphnwnyi/Build/Products/Release-iphoneos/pack.sh">
|
||||
</ActionContent>
|
||||
</ExecutionAction>
|
||||
</PostActions>
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
|
|
|
@ -56,7 +56,6 @@
|
|||
NSData *msgData = [data subdataWithRange:NSMakeRange(0, 3)];
|
||||
NSString *message = [[NSString alloc] initWithData:msgData encoding:NSASCIIStringEncoding];
|
||||
if ([message isEqualToString:@"LED"] && data.length >= 99) {
|
||||
NSLog(@"received led update");
|
||||
NSData *led = [data subdataWithRange:NSMakeRange(3, 96)];
|
||||
[self.parentVc updateLed:led];
|
||||
}
|
||||
|
@ -89,6 +88,7 @@
|
|||
[sock disconnect];
|
||||
[connectedSockets removeObject:sock];
|
||||
}
|
||||
[server disconnect];
|
||||
}
|
||||
- (void)becomeActive {
|
||||
server.IPv4Enabled = YES;
|
||||
|
|
Loading…
Reference in New Issue