mirror of
https://github.com/schoebel/mars
synced 2025-02-20 06:06:58 +00:00
main: disallow fresh open when gate is active
This commit is contained in:
parent
3aaeb73dfc
commit
1e18140c01
@ -6373,6 +6373,8 @@ int make_gate(struct mars_rotate *rot, struct mars_dent *dent)
|
|||||||
_gate_brick->rewire = true;
|
_gate_brick->rewire = true;
|
||||||
inhibit_mask = _check_allow(rot->parent_path, "gate-mask");
|
inhibit_mask = _check_allow(rot->parent_path, "gate-mask");
|
||||||
rot->gate_brick->inhibit_mask = inhibit_mask;
|
rot->gate_brick->inhibit_mask = inhibit_mask;
|
||||||
|
if (rot->if_brick)
|
||||||
|
rot->if_brick->busy_open = (inhibit_mask != 0);
|
||||||
/* early reporting when gate has changed */
|
/* early reporting when gate has changed */
|
||||||
if (inhibit_mask != rot->old_inhibit_mask) {
|
if (inhibit_mask != rot->old_inhibit_mask) {
|
||||||
_show_gate(rot);
|
_show_gate(rot);
|
||||||
|
Loading…
Reference in New Issue
Block a user