Skip to content

Commit 4ecaed3

Browse files
Merge pull request #137 from TakayukiHoshi1984/bugfix_alljoyn_lightid_omission
AllJoynデバイスプラグインのLightId省略修正
2 parents 381b918 + 62c59c8 commit 4ecaed3

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

dConnectDevicePlugin/dConnectDeviceAllJoyn/dConnectDeviceAllJoyn/Sources/Profiles/DPAllJoynLightProfile.mm

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ - (void) didReceivePostLightRequestForLampControllerWithResponse:(DConnectRespon
813813
MsgArg newStateArg("a{sv}", count, newStates);
814814
AJNMessageArgument *newState =
815815
[[AJNMessageArgument alloc] initWithHandle:&newStateArg];
816-
[proxy transitionLampStateWithLampID:lightId
816+
[proxy transitionLampStateWithLampID:_lightId
817817
lampState:newState
818818
transitionPeriod:@10
819819
responseCode:&responseCode
@@ -1081,17 +1081,6 @@ - (void) didReceivePutLightRequestForLampControllerWithResponse:(DConnectRespons
10811081
transitionPeriod:@10
10821082
responseCode:&responseCode
10831083
lampID:&ignored];
1084-
if (!responseCode) {
1085-
[response setErrorToUnknownWithMessage:@"Failed to change status."];
1086-
}
1087-
else if (responseCode.unsignedIntValue != DPAllJoynLightResponseCodeOK) {
1088-
[response setErrorToUnknownWithMessage:
1089-
[NSString stringWithFormat:@"Failed to change status (code: %@).",
1090-
responseCode]];
1091-
}
1092-
else {
1093-
[response setResult:DConnectMessageResultTypeOk];
1094-
}
10951084

10961085
if (name) {
10971086
NSString *ignored;

0 commit comments

Comments
 (0)