Commit db46651d authored by Federico Vaga's avatar Federico Vaga

wrtd:lib:out: fix trigger-channel index

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>


NOTE
This commit has been created by `git subtree` on the Mock Turtle repository
on tag mock-turtle-2.0

This commit will not compile
parent f6124364
......@@ -872,9 +872,9 @@ int wrtd_out_trig_enable(struct wrtd_node *dev,
}
if (enable)
trig.ocfg[handle->ptr_trig].state &= ~HASH_ENT_DISABLED;
trig.ocfg[handle->channel].state &= ~HASH_ENT_DISABLED;
else
trig.ocfg[handle->ptr_trig].state |= HASH_ENT_DISABLED;
trig.ocfg[handle->channel].state |= HASH_ENT_DISABLED;
return wrnc_rt_structure_set(wrtd->wrnc, &hdr, &tlv, 1);
}
......
Markdown is supported
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