Skip to content

Commit

Permalink
fuji focus testing with new driver
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahparker committed Nov 12, 2019
1 parent 37125ef commit 76fe778
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions camera/ptpjs/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ CameraAPI.prototype.liveviewImage = function(callback) {
return this._driver.liveviewImage(this, callback);
}

CameraAPI.prototype.moveFocus = function(steps, resolution, callback) {
CameraAPI.prototype.moveFocus = function(steps, resolution, callback, absPos) {
if(!this.supports.focus || !this._driver.moveFocus) return callback && callback("not supported");
return this._driver.moveFocus(this, steps, resolution, callback);
return this._driver.moveFocus(this, steps, resolution, callback, absPos);
}

CameraAPI.prototype.setFocusPoint = function(x, y, callback) {
Expand Down
4 changes: 2 additions & 2 deletions intervalometer/intervalometer.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ function remap(method) { // remaps camera.ptp methods to use new driver if possi
}
case 'camera.ptp.focus':
if(camera.ptp.new.available) {
return function(dir, steps, callback) {
camera.ptp.new.moveFocus(dir * steps, 1, callback);
return function(dir, steps, callback, absPos) {
camera.ptp.new.moveFocus(dir * steps, 1, callback, absPos);
}
} else {
return camera.ptp.focus;
Expand Down

0 comments on commit 76fe778

Please sign in to comment.