Skip to content

Commit

Permalink
adding Sony A7IV
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahparker committed Aug 4, 2022
1 parent ad64be6 commit 6234b68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion camera/ptpjs/drivers/olympus.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function exposureEvent(camera) {
if(!camera._expCache) camera._expCache = {};
var update = false;
for(var k in camera.exposure) {
if(camera.exposure[k].ev != camera._expCache[k]) {
if(camera.exposure[k] && camera.exposure[k].ev != camera._expCache[k]) {
camera._expCache[k] = camera.exposure[k].ev;
update = true;
}
Expand Down Expand Up @@ -1078,6 +1078,7 @@ driver.setFocusPoint = function(camera, x, y, callback) {

driver.setLiveviewSize = function(camera, w, h, callback) {
var liveviewSize = camera.config.liveviewSize;
if(!liveviewSize) return callback && callback("not supported");
liveviewSize.x = w;
liveviewSize.y = h;
var newSize = (w << 16) | h;
Expand Down
1 change: 1 addition & 0 deletions camera/ptpjs/drivers/sony.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ driver.supportedCameras = {
'054c:0d2b': { name: "Sony A7C", supports: { shutter: true, aperture: true, iso: true, liveview: true, destination: true, focus: true, _bufTime: 2500, newISO: true } },
'054c:0d9f': { name: "Sony A7R IV A", supports: { shutter: true, aperture: true, iso: true, liveview: true, destination: true, focus: true, _bufTime: 2500, newISO: true } },
'054c:0da3': { name: "Sony FX3", supports: { shutter: true, aperture: true, iso: true, liveview: true, destination: true, focus: true, _bufTime: 2500, newISO: true } },
'054c:0da7': { name: "Sony A7 IV", supports: { shutter: true, aperture: true, iso: true, liveview: true, destination: true, focus: true, _bufTime: 2500, newISO: true } },
}

var properties = {
Expand Down

0 comments on commit 6234b68

Please # to comment.