Skip to content

Commit

Permalink
keep canon eos remotemode=1 on exit, to keep the display on
Browse files Browse the repository at this point in the history
  • Loading branch information
msmeissn committed Jan 3, 2022
1 parent a829e50 commit 07a2176
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion camlibs/ptp2/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,8 @@ camera_unprepare_canon_eos_capture(Camera *camera, GPContext *context) {

/* Drain the rest set of the event data */
C_PTP (ptp_check_eos_events (params));
C_PTP (ptp_canon_eos_setremotemode(params, 0));
/* remotemode 1 should stay, as it keeps the display on for some reason */
/*C_PTP (ptp_canon_eos_setremotemode(params, 0));*/
C_PTP (ptp_canon_eos_seteventmode(params, 0));
params->eos_captureenabled = 0;
return GP_OK;
Expand Down
2 changes: 2 additions & 0 deletions camlibs/ptp2/library.c
Original file line number Diff line number Diff line change
Expand Up @@ -3100,6 +3100,8 @@ camera_exit (Camera *camera, GPContext *context)
if ((exit_gp_result = camera_unprepare_capture (camera, context)) < GP_OK) /* note: gets gphoto resultcodes, not ptp retcodes */
goto exitfailed;
}
/* this switches the display back on ... */
C_PTP (ptp_canon_eos_setremotemode(params, 1));
break;
case PTP_VENDOR_NIKON:
if (ptp_operation_issupported(params, PTP_OC_NIKON_EndLiveView))
Expand Down

0 comments on commit 07a2176

Please sign in to comment.