Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
usb2
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs
ds
usb2
Commits
a4ef0ab2
Commit
a4ef0ab2
authored
1 year ago
by
Alessio Igor Bogani
Browse files
Options
Downloads
Patches
Plain Diff
Add a comment
parent
b00ce4fe
No related branches found
Branches containing commit
Tags
1.2.0
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/USB2.cpp
+5
-2
5 additions, 2 deletions
src/USB2.cpp
with
5 additions
and
2 deletions
src/USB2.cpp
+
5
−
2
View file @
a4ef0ab2
...
...
@@ -526,14 +526,17 @@ void USB2::write(const Tango::DevVarCharArray *argin)
if
(
ret
!=
0
||
bytes_written
!=
bytes_to_write
-
bytes_total
)
{
delete
argin_data
;
string
error_mesg
=
"Unable to send request to device"
;
close
();
open
();
string
error_mesg
=
"Unable to send request to device"
;
DEBUG_STREAM
<<
error_mesg
<<
endl
;
set_state
(
Tango
::
FAULT
);
set_status
(
error_mesg
);
// TODO have we to wait? timeout is decreased?
Tango
::
Except
::
throw_exception
(
""
,
error_mesg
,
"USB2::write()"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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