- added Timestamp_clearFlags function

This commit is contained in:
Michael Zillgith 2015-01-29 11:52:39 +01:00
parent 811b8f4572
commit a5ed8a650b
3 changed files with 12 additions and 0 deletions

View file

@ -191,6 +191,12 @@ FunctionalConstraint_fromString(char* fcString)
return NONE;
}
void
Timestamp_clearFlags(Timestamp* self)
{
self->val[7] = 0;
}
bool
Timestamp_isLeapSecondKnown(Timestamp* self)
{

View file

@ -313,6 +313,9 @@ typedef union {
uint8_t val[8];
} Timestamp;
void
Timestamp_clearFlags(Timestamp* self);
uint32_t
Timestamp_getTimeInSeconds(Timestamp* self);

View file

@ -1058,6 +1058,9 @@ IedServer_setWriteAccessPolicy(IedServer self, FunctionalConstraint fc, AccessPo
void
IedServer_handleWriteAccess(IedServer self, DataAttribute* dataAttribute, WriteAccessHandler handler)
{
if (dataAttribute == NULL)
*((int*) NULL) = 1;
MmsMapping_installWriteAccessHandler(self->mmsMapping, dataAttribute, handler);
}