Skip to content

Commit

Permalink
testing for Sony
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahparker committed Jan 9, 2020
1 parent 3c12487 commit 2046f48
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion camera/ptpjs/drivers/sony.js
Original file line number Diff line number Diff line change
Expand Up @@ -1010,10 +1010,13 @@ driver.capture = function(camera, target, options, callback, tries) {
}
}, // make sure focus is set to MF
function(cb){setDeviceControlValueB(camera._dev, 0xD2C1, 2, 4, cb);}, // activate half-press
function(cb){setDeviceControlValueB(camera._dev, 0xD2C2, 2, 4, cb);}, // activate full-press
function(cb){ setTimeout(cb, 10); },
function(cb){setDeviceControlValueB(camera._dev, 0xD2C2, 2, 4, cb);}, // activate full-press
function(cb){ setTimeout(cb, 50); },
function(cb){setDeviceControlValueB(camera._dev, 0xD2C2, 1, 4, cb);}, // release full-press
function(cb){ setTimeout(cb, 10); },
function(cb){setDeviceControlValueB(camera._dev, 0xD2C1, 1, 4, cb);}, // release half-press
function(cb){ setTimeout(cb, 10); },
function(cb){
getImage(camera, camera.exposure.shutter.duration_ms + camera.supports._bufTime, function(err, th, fn, rw) {
thumb = th;
Expand Down

0 comments on commit 2046f48

Please sign in to comment.