Skip to content

Commit 5b97877

Browse files
committed
Fix unused ret value.
@jolting I think this is what you implied in your commit comment from weeks ago... now I saw it ;-)
1 parent 8232a89 commit 5b97877

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/hwdrivers/src/CVelodyneScanner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ bool CVelodyneScanner::internal_send_http_post(const std::string &post_data)
918918
&out_headers
919919
);
920920

921-
return http_rep_code == 200 || http_rep_code == 204; // OK codes
921+
return mrpt::utils::net::erOk==ret && (http_rep_code == 200 || http_rep_code == 204); // OK codes
922922

923923
MRPT_END;
924924
}

0 commit comments

Comments
 (0)