From 1c4f11313827f4a5bacabc0ca3b9179c963d9115 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 29 Sep 2023 16:13:26 +0200 Subject: [PATCH] added usb ids for K3III and K1II https://github.com/asalamon74/pktriggercord/issues/21 --- camlibs/pentax/library.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/camlibs/pentax/library.c b/camlibs/pentax/library.c index be4f195c5f..71ff609673 100644 --- a/camlibs/pentax/library.c +++ b/camlibs/pentax/library.c @@ -162,8 +162,21 @@ camera_abilities (CameraAbilitiesList *list) a.usb_product = 0x017e; if (GP_OK != (ret = gp_abilities_list_append (list, a))) return ret; - return GP_OK; + /* https://github.com/asalamon74/pktriggercord/issues/21 */ + strcpy (a.model, "Pentax:K1II"); + a.usb_vendor = 0x25fb; + a.usb_product = 0x0183; + if (GP_OK != (ret = gp_abilities_list_append (list, a))) + return ret; + + strcpy (a.model, "Pentax:K3III"); + a.usb_vendor = 0x25fb; + a.usb_product = 0x0189; + if (GP_OK != (ret = gp_abilities_list_append (list, a))) + return ret; + + return GP_OK; } int scsi_write(GPPort *port, uint8_t *cmd, uint32_t cmdLen,