aboutsummaryrefslogtreecommitdiffstats
path: root/o3000_upgrade.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--o3000_upgrade.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/o3000_upgrade.c b/o3000_upgrade.c
index 264afc1..700a280 100644
--- a/o3000_upgrade.c
+++ b/o3000_upgrade.c
@@ -1,6 +1,8 @@
/**
* @file o3000_upgrade.c
* @brief O-3000 firmware upgrade
+* @author Patrick Roth - roth@stettbacher.ch
+* @author Patrick Brunner - brunner@stettbacher.ch
* @author Sophia Papagiannaki - papagiannaki@stettbacher.ch
* @version 0.1
* @date 2020-05-12
@@ -62,9 +64,6 @@ const char* app_ids[] = {
"Camera O-3120", // global shutter, color version
};
-const uint16_t vid = 0x0483;
-const uint16_t pid = 0xA098;
-
static struct cam_usb_t {
struct libusb_context *ctx; // libusb context
struct libusb_device_handle *dev_handle; // the USB device handle
@@ -225,7 +224,7 @@ static enum cam_mode_t usb_open(void)
// If the camera has just performed a reset, it might not be ready yet.
// We try MAX_RETRIES times, before we give up.
while(retries > 0) {
- if((cam_usb.dev_handle = libusb_open_device_with_vid_pid(cam_usb.ctx, vid, pid)) == NULL) {
+ if((cam_usb.dev_handle = libusb_open_device_with_vid_pid(cam_usb.ctx, O3000_VID, O3000_PID)) == NULL) {
printf("retry: %d\n",retries);
retries--;
sleep(1);