Changed COV FSM handler to stay IDLE until there is a valid subscriber. (#1257)
This commit is contained in:
@@ -157,6 +157,8 @@ The git repositories are hosted at the following sites:
|
||||
|
||||
### Changed
|
||||
|
||||
* Changed the COV FSM handler to remiain in the IDLE state until there
|
||||
is a valid subscriber. (#1257)
|
||||
* Changed bacnet_array_write() write_function callback API by adding
|
||||
array size parameter to avoid a duplicate decoding operation.
|
||||
Removed duplicate checking of array size in object handlers. (#1253)
|
||||
|
||||
@@ -622,8 +622,14 @@ bool handler_cov_fsm(void)
|
||||
|
||||
switch (cov_task_state) {
|
||||
case COV_STATE_IDLE:
|
||||
index = 0;
|
||||
cov_task_state = COV_STATE_MARK;
|
||||
if (COV_Subscriptions[index].flag.valid) {
|
||||
cov_task_state = COV_STATE_MARK;
|
||||
} else {
|
||||
index++;
|
||||
if (index >= MAX_COV_SUBCRIPTIONS) {
|
||||
index = 0;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case COV_STATE_MARK:
|
||||
/* mark any subscriptions where the value has changed */
|
||||
|
||||
Reference in New Issue
Block a user