Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HP_2101nw
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kainhofer
HP_2101nw
Commits
b52c48f3
Commit
b52c48f3
authored
13 years ago
by
Reinhold Kainhofer
Browse files
Options
Downloads
Patches
Plain Diff
connect script: Improve console output
parent
82fa7d01
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hp2101nw_connect.pl
+2
-3
2 additions, 3 deletions
hp2101nw_connect.pl
with
2 additions
and
3 deletions
hp2101nw_connect.pl
+
2
−
3
View file @
b52c48f3
...
@@ -360,7 +360,7 @@ sub device_detect () {
...
@@ -360,7 +360,7 @@ sub device_detect () {
my
$request
=
SBSU_create_buffer
(
$SBSU_STATUS
);
my
$request
=
SBSU_create_buffer
(
$SBSU_STATUS
);
my
$result
=
{};
my
$result
=
{};
my
$loop
=
0
;
my
$loop
=
0
;
debug
"
Sending device detection request (UDP broadcast on port 34447)
\n
";
debug
"
Sending device detection request (UDP broadcast on port 34447)
";
# I can't add the broadcast address to the IO::Socket::INET, because
# I can't add the broadcast address to the IO::Socket::INET, because
# the response will not be from the broadcast address and thus it
# the response will not be from the broadcast address and thus it
# would not be detected. Rather, I'll have to add the PeerAddress
# would not be detected. Rather, I'll have to add the PeerAddress
...
@@ -425,8 +425,7 @@ sub device_select ($) {
...
@@ -425,8 +425,7 @@ sub device_select ($) {
"
\t
------------------------------------------------------------------------
";
"
\t
------------------------------------------------------------------------
";
if
(
scalar
(
@d
)
==
1
)
{
if
(
scalar
(
@d
)
==
1
)
{
print
$text
;
print
"
\n
$text
\n\t
@d
[0]
\n
";
print
@d
[
0
];
}
else
{
}
else
{
return
ask_choice
(
$text
,
return
ask_choice
(
$text
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment