Skip to content

Commit

Permalink
Merge branch 'master' into enstabre
Browse files Browse the repository at this point in the history
  • Loading branch information
lebarsfa committed Mar 14, 2023
2 parents 486b909 + bdb783f commit cbccda2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/custom_baudrate/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void print_usage(int argc, const char* argv[])
" %s <com port> [baudrate]\n"
" The baudrate can be ANY possible values between 115200 to 512000.\n"

, "SL_LIDAR_SDK_VERSION", argv[0], argv[0]);
, "SL_LIDAR_SDK_VERSION", argv[0]);
}


Expand Down
2 changes: 1 addition & 1 deletion app/simple_grabber/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ int main(int argc, const char * argv[]) {
, opt_channel_param_first);
break;
case CHANNEL_TYPE_UDP:
fprintf(stderr, "Error, cannot connect to the ip addr %s with the udp port %s.\n"
fprintf(stderr, "Error, cannot connect to the ip addr %s with the udp port %u.\n"
, opt_channel_param_first, opt_channel_param_second);
break;
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/sl_tcp_channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ namespace sl {

bool open()
{
if(SL_IS_FAIL(bind(_ip, _port)))
if(bind(_ip, _port))
return false;
return IS_OK(_binded_socket->connect(_socket));

Expand Down
2 changes: 1 addition & 1 deletion sdk/src/sl_udp_channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace sl {

bool open()
{
if(SL_IS_FAIL(bind(_ip, _port)))
if(bind(_ip, _port))
return false;
return SL_IS_OK(_binded_socket->setPairAddress(&_socket));
}
Expand Down

0 comments on commit cbccda2

Please sign in to comment.