Skip to content

Commit

Permalink
Do not auto-clear MPR_STATUS_REL_UPSTRM flag on inst_status check.
Browse files Browse the repository at this point in the history
  • Loading branch information
malloch committed Sep 3, 2024
1 parent 81ab1f0 commit 9a9ba0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1631,8 +1631,9 @@ int mpr_sig_get_inst_status(mpr_sig sig, mpr_id id)
si = _find_inst_by_id((mpr_local_sig)sig, id);
if (si) {
if ((status = si->status)) {
/* clear all flags except for HAS_VALUE, ACTIVE, and STAGED */
si->status &= (MPR_STATUS_HAS_VALUE | MPR_STATUS_ACTIVE | MPR_STATUS_STAGED);
/* clear all flags except for HAS_VALUE, STAGED/ACTIVE, and REL_UPSTRM */
si->status &= ( MPR_STATUS_HAS_VALUE | MPR_STATUS_ACTIVE
| MPR_STATUS_STAGED | MPR_STATUS_REL_UPSTRM);
}
else
status = MPR_STATUS_STAGED;
Expand Down

0 comments on commit 9a9ba0d

Please sign in to comment.