Skip to content

Commit

Permalink
- CS104 client: fixed problem in encoding function for IOA
Browse files Browse the repository at this point in the history
  • Loading branch information
mzillgith committed May 2, 2018
1 parent 9fadedc commit 09756ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib60870-C/src/iec60870/cs104/cs104_connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ encodeIOA(CS104_Connection self, Frame frame, int ioa)
if (self->alParameters.sizeOfIOA > 1)
T104Frame_setNextByte(frame, (uint8_t) ((ioa / 0x100) & 0xff));

if (self->alParameters.sizeOfIOA > 1)
if (self->alParameters.sizeOfIOA > 2)
T104Frame_setNextByte(frame, (uint8_t) ((ioa / 0x10000) & 0xff));
}

Expand Down

0 comments on commit 09756ce

Please sign in to comment.