Skip to content

Commit

Permalink
sony testing
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahparker committed Mar 8, 2019
1 parent 076378a commit 231ecb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions camera/ptp/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ function capture(options, callback) {
if (!err && photo) {
errCount = 0;
var cameraFileIsJpeg = info && info.slice(-4) == '.jpg';
if (options.thumbnail && supports.thumbnail || cameraFileIsJpeg) {
if ((options.thumbnail && supports.thumbnail) || cameraFileIsJpeg) {
sdWriting = false;
//if (!options.index) options.index = 0;
if(options.calculateEv) {
Expand Down Expand Up @@ -1031,15 +1031,15 @@ function getConfig(noEvent, cached, cb) {
//console.log("processing item", item);
if (item == 'shutterspeed' && data.status && manufacturer == 'Sony Corporation') {
console.log("WORKER: manually adding shutter speed list (" + (halfsUsed ? 'halfs' : 'thirds') + ")", data[section].children[item].choices);
//supports.thumbnail = false; // sony USB doesn't support thumbnail-only capture
supports.thumbnail = false; // sony USB doesn't support thumbnail-only capture
var l = halfsUsed ? LISTS.shutterHalfs : LISTS.shutter;
data[section].children[item].choices = [];
for (var j = 0; j < l.length; j++) {
if(l[j].values.length > 1 && l[j].ev >= -11) data[section].children[item].choices.push(l[j].values[0]); // sony doesn't report available shutter speeds, so define them here
}
} else if (item == 'f-number' && data.status && manufacturer == 'Sony Corporation') {
console.log("WORKER: manually adding aperture value list (" + (halfsUsed ? 'halfs' : 'thirds') + ")", data[section].children[item].choices);
//supports.thumbnail = false; // sony USB doesn't support thumbnail-only capture
supports.thumbnail = false; // sony USB doesn't support thumbnail-only capture
var l = halfsUsed ? LISTS.apertureHalfs : LISTS.aperture;
data[section].children[item].choices = [];
for (var j = 0; j < l.length; j++) {
Expand Down
4 changes: 2 additions & 2 deletions lib/libgphoto2_ptp2_updates/library.c
Original file line number Diff line number Diff line change
Expand Up @@ -7480,8 +7480,8 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename,
((ob->oi.ObjectFormat != PTP_OFC_CANON_MOV)) &&
((ob->oi.ObjectFormat != PTP_OFC_CANON_MOV2)) &&
((ob->oi.ObjectFormat != PTP_OFC_CANON_CRW3)) &&
((ob->oi.ObjectFormat != PTP_OFC_CANON_CRW4)) &&
((ob->oi.ObjectFormat != PTP_OFC_SONY_RAW))
((ob->oi.ObjectFormat != PTP_OFC_CANON_CRW4))/* &&
((ob->oi.ObjectFormat != PTP_OFC_SONY_RAW))*/
))
return GP_ERROR_NOT_SUPPORTED;

Expand Down

0 comments on commit 231ecb2

Please sign in to comment.