From 8708e017ad136d679a6f2a3ca9b9389e4faee78e Mon Sep 17 00:00:00 2001 From: Mariusz Woloszyn Date: Mon, 4 Mar 2002 13:49:46 +0000 Subject: [PATCH] Protocol fix. Transaction ID of first OpenSession should be 0x000000! git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4233 67ed7778-7388-44ab-90cf-0a291f65f57c --- camlibs/ptp/library.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/camlibs/ptp/library.c b/camlibs/ptp/library.c index a4f81b26f..1b8a3ca41 100644 --- a/camlibs/ptp/library.c +++ b/camlibs/ptp/library.c @@ -203,7 +203,7 @@ static struct { {"Sony MVC-CD300", 0x054c, 0x004e}, // we're looking for vendor/product IDs of following: - {"HP PhotoSmart 612", 0x0000, 0x0000}, + {"HP PhotoSmart 612", 0x03f0, 0x6302}, {"HP PhotoSmart 715", 0x03f0, 0x6402}, // more comming soon :) {NULL, 0, 0} @@ -844,7 +844,7 @@ camera_init (Camera *camera, GPContext *context) memset (camera->pl->params.data, 0, sizeof (PTPData)); ((PTPData *) camera->pl->params.data)->camera = camera; camera->pl->params.byteorder = PTP_DL_LE; - camera->pl->params.transaction_id=0x01; + camera->pl->params.transaction_id=0x00; /* Configure the port */ CR (gp_port_set_timeout (camera->port, 3000));