fix
parent
d64cc5f5df
commit
6861777cf6
|
@ -5,6 +5,16 @@
|
||||||
<BuildAction
|
<BuildAction
|
||||||
parallelizeBuildables = "YES"
|
parallelizeBuildables = "YES"
|
||||||
buildImplicitDependencies = "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>
|
<BuildActionEntries>
|
||||||
<BuildActionEntry
|
<BuildActionEntry
|
||||||
buildForTesting = "YES"
|
buildForTesting = "YES"
|
||||||
|
|
|
@ -56,7 +56,6 @@
|
||||||
NSData *msgData = [data subdataWithRange:NSMakeRange(0, 3)];
|
NSData *msgData = [data subdataWithRange:NSMakeRange(0, 3)];
|
||||||
NSString *message = [[NSString alloc] initWithData:msgData encoding:NSASCIIStringEncoding];
|
NSString *message = [[NSString alloc] initWithData:msgData encoding:NSASCIIStringEncoding];
|
||||||
if ([message isEqualToString:@"LED"] && data.length >= 99) {
|
if ([message isEqualToString:@"LED"] && data.length >= 99) {
|
||||||
NSLog(@"received led update");
|
|
||||||
NSData *led = [data subdataWithRange:NSMakeRange(3, 96)];
|
NSData *led = [data subdataWithRange:NSMakeRange(3, 96)];
|
||||||
[self.parentVc updateLed:led];
|
[self.parentVc updateLed:led];
|
||||||
}
|
}
|
||||||
|
@ -89,6 +88,7 @@
|
||||||
[sock disconnect];
|
[sock disconnect];
|
||||||
[connectedSockets removeObject:sock];
|
[connectedSockets removeObject:sock];
|
||||||
}
|
}
|
||||||
|
[server disconnect];
|
||||||
}
|
}
|
||||||
- (void)becomeActive {
|
- (void)becomeActive {
|
||||||
server.IPv4Enabled = YES;
|
server.IPv4Enabled = YES;
|
||||||
|
|
Loading…
Reference in New Issue