From ae55a399080beba98b5f9d4caa9c227ef9ce80d0 Mon Sep 17 00:00:00 2001 From: Till Kamppeter Date: Mon, 3 Mar 2003 02:17:08 +0000 Subject: Fixed bug of USB printers which do not report back an IEEE-1284 ID string after three attempts being invisible instead of being listed as an "Unknown device". --- perl-install/printer/detect.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'perl-install/printer/detect.pm') diff --git a/perl-install/printer/detect.pm b/perl-install/printer/detect.pm index 9e3104b01..72568ee47 100644 --- a/perl-install/printer/detect.pm +++ b/perl-install/printer/detect.pm @@ -134,7 +134,9 @@ sub whatUsbport() { $commandset ||= $1; $itemfound = 1; } - next if !$itemfound; + # Nothing found? Try again if not in the third attempt, + # in the third attempt always accept. + next if !$itemfound && ($j < 3); # Was there a manufacturer and a model in the string? if ($manufacturer eq "" || $model eq "") { $manufacturer = ""; -- cgit v1.2.1