Skip to content

Commit

Permalink
comment case EWOULDBLOCK
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Desreumaux committed Jun 17, 2019
1 parent 455882e commit 58ccb5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dynamixel/controllers/usb2dynamixel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ namespace dynamixel {
"a socket and has been marked nonblocking (O_NONBLOCK), and "
"the write would block.";
// On some OS, EWOULDBLOCK has the same value as EAGAIN and would hence not compile.
case EWOULDBLOCK:
return "EWOULDBLOCK: The file descriptor fd refers to a socket "
"and has been marked nonblocking (O_NONBLOCK), and the "
"write would block.";
// case EWOULDBLOCK:
// return "EWOULDBLOCK: The file descriptor fd refers to a socket "
// "and has been marked nonblocking (O_NONBLOCK), and the "
// "write would block.";

This comment has been minimized.

Copy link
@dogoepp

dogoepp Jun 18, 2019

Member

Why turn this code into a comment?

case EBADF:
return "EBADF: fd is not a valid file descriptor or is not open for writing.";
case EDESTADDRREQ:
Expand Down

0 comments on commit 58ccb5d

Please sign in to comment.