|
|
@ -508,6 +508,7 @@ MmsGooseControlBlock_disable(MmsGooseControlBlock self, MmsMapping* mmsMapping)
|
|
|
|
void
|
|
|
|
void
|
|
|
|
MmsGooseControlBlock_checkAndPublish(MmsGooseControlBlock self, uint64_t currentTime)
|
|
|
|
MmsGooseControlBlock_checkAndPublish(MmsGooseControlBlock self, uint64_t currentTime)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (self->publisher) {
|
|
|
|
if (currentTime >= self->nextPublishTime) {
|
|
|
|
if (currentTime >= self->nextPublishTime) {
|
|
|
|
|
|
|
|
|
|
|
|
#if (CONFIG_MMS_THREADLESS_STACK != 1)
|
|
|
|
#if (CONFIG_MMS_THREADLESS_STACK != 1)
|
|
|
@ -541,6 +542,7 @@ MmsGooseControlBlock_checkAndPublish(MmsGooseControlBlock self, uint64_t current
|
|
|
|
self->nextPublishTime = currentTime + self->minTime;
|
|
|
|
self->nextPublishTime = currentTime + self->minTime;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
void
|
|
|
|
MmsGooseControlBlock_setStateChangePending(MmsGooseControlBlock self)
|
|
|
|
MmsGooseControlBlock_setStateChangePending(MmsGooseControlBlock self)
|
|
|
@ -551,6 +553,9 @@ MmsGooseControlBlock_setStateChangePending(MmsGooseControlBlock self)
|
|
|
|
void
|
|
|
|
void
|
|
|
|
MmsGooseControlBlock_publishNewState(MmsGooseControlBlock self)
|
|
|
|
MmsGooseControlBlock_publishNewState(MmsGooseControlBlock self)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (self->publisher == false)
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
if (self->stateChangePending) {
|
|
|
|
if (self->stateChangePending) {
|
|
|
|
#if (CONFIG_MMS_THREADLESS_STACK != 1)
|
|
|
|
#if (CONFIG_MMS_THREADLESS_STACK != 1)
|
|
|
|
Semaphore_wait(self->publisherMutex);
|
|
|
|
Semaphore_wait(self->publisherMutex);
|
|
|
|