Skip to content

Canon camera controls disabled and showing "busy" when remote-controled #1210

@corpsmoderne

Description

@corpsmoderne

Describe the bug

With libgphoto2 2.5.30 , after gp_camera_init, the camera wheels and buttons are still usable to adjust the camera parameters (for example, ISO or shutter-speed).

With libgphoto2 2.5.31 (also tested with .33), using a wheel or a button is ignored by the camera and the LCD show "busy" in the bottom left corner.

Name the camera
Canon EOS R6m2 usb:001,031

libgphoto2 and gphoto2 version
libgphoto2 2.5.31+

To Reproduce

This code exemplifies the issue: with 2.5.30 the buttons are still active, with 2.5.31 and up, they're busy.

/*
** Compile with:
** gcc -Wall gphoto_busy.c `pkg-config --cflags --libs libgphoto2`
*/

#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <gphoto2/gphoto2.h>

int main(int argc, char **argv) {
	Camera	*camera;
	int	retval;
	GPContext *context = context = gp_context_new();

	const char **version = gp_library_version(0);
	printf("version: %s\n", *version);

	gp_camera_new(&camera);

	printf("Camera init.\n");
	retval = gp_camera_init(camera, context);
	if (retval != GP_OK) {
		printf("  Retval of camera_init: %d\n", retval);
		exit (1);
	}
	
	printf("waiting, press any key to quit.\n");
	getc(stdin);
	
	gp_camera_exit(camera, context);
	return 0;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions