Changed COV FSM handler to stay IDLE until there is a valid subscriber. (#1257)

This commit is contained in:
Steve Karg
2026-03-09 13:39:57 -05:00
committed by GitHub
parent bd29f1039d
commit fda63eb1aa
2 changed files with 10 additions and 2 deletions
+2
View File
@@ -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)
+8 -2
View File
@@ -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 */