Skip to content

Commit c9c11e9

Browse files
Sonyカメラに合わせて、maxをstartに変換するように修正
1 parent 2091960 commit c9c11e9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • dConnectDevicePlugin/dConnectDeviceSonyCamera/dConnectDeviceSonyCamera/Classes

dConnectDevicePlugin/dConnectDeviceSonyCamera/dConnectDeviceSonyCamera/Classes/SonyCameraManager.m

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,12 @@ - (void) setZoomByDirection:(NSString *)direction
384384
__block typeof(self) weakSelf = self;
385385

386386
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
387-
NSDictionary *dict = [weakSelf.remoteApi actZoom:direction movement:movement];
387+
NSString *tmpMovement = movement;
388+
if ([movement isEqualToString:@"max"]) {
389+
tmpMovement = @"start";
390+
}
391+
392+
NSDictionary *dict = [weakSelf.remoteApi actZoom:direction movement:tmpMovement];
388393
if (dict == nil) {
389394
block(1, @"timeout");
390395
} else {

0 commit comments

Comments
 (0)