Commit 33761aa0 authored by Franksen, Benjamin's avatar Franksen, Benjamin
Browse files

fix in lowcal: must not call sci_write_inhibit for RTR objects

parent 49535733
......@@ -1461,9 +1461,17 @@ prot_Return lowcal_get (
}
}
}
func_ret |= PROT_INHIB;
/* Must not return PROT_INHIB for RTR objects, as this causes
the writer to use sci_write_inhibit, which fails in this case.
Also, to be on the safe side, return PROT_INHIB only if the
configured inhibit time is positive. */
if (!(slot_p->var_attrib.class == LCAL_BASIC &&
slot_p->var_attrib.access == LCAL_READ_ONLY)
&& slot_p->var_attrib.inhibit_time > 0) {
func_ret |= PROT_INHIB;
}
EXIT:
UNLOCK(mutex);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment