Skip to content

Commit

Permalink
- added default case in ASDU handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mzillgith committed Oct 17, 2018
1 parent 6b52887 commit 2769573
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib60870-C/src/iec60870/cs101/cs101_asdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1139,6 +1139,10 @@ CS101_ASDU_getElementEx(CS101_ASDU self, InformationObject io, int index)
self->payload, self->payloadSize, index * (self->parameters->sizeOfIOA + elementSize), false);

break;

default:
DEBUG_PRINT("type %d not supported\n", CS101_ASDU_getTypeID(self));
break;
}

return retVal;
Expand Down

0 comments on commit 2769573

Please sign in to comment.