Skip to content

Commit

Permalink
Use correct constant when evaluating OpenProducingPointToPointConnect…
Browse files Browse the repository at this point in the history
…ion() return value.

This was missed when the return type was changed in f68e049.
Resolves GCC warnings about comparing members of different enumerations.
  • Loading branch information
jvalenzuela authored and MartinMelikMerkumians committed Sep 26, 2023
1 parent ff1f3d6 commit 603e823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/src/cip/cipioconnection.c
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ CipError OpenCommunicationChannels(CipConnectionObject *connection_object) {

if(OpenProducingPointToPointConnection(connection_object,
common_packet_format_data) !=
kEipStatusOk) {
kCipErrorSuccess) {
OPENER_TRACE_ERR("error in PointToPoint producing connection\n");
return kCipErrorConnectionFailure;
}
Expand Down

0 comments on commit 603e823

Please sign in to comment.