Skip to content

Commit

Permalink
added usb ids for K3III and K1II
Browse files Browse the repository at this point in the history
  • Loading branch information
msmeissn committed Sep 29, 2023
1 parent 3118a77 commit 1c4f113
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion camlibs/pentax/library.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1c4f113

Please sign in to comment.