Commit 547b03ee authored by Federico Vaga's avatar Federico Vaga

wrtd:lib: fix mode set bitmask

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 ce594d3b
......@@ -934,7 +934,7 @@ int wrtd_out_trigger_mode_set(struct wrtd_node *dev,
return err;
chan.config.mode = mode;
chan.config.flags &= (WRTD_TRIGGERED | WRTD_LAST_VALID);
chan.config.flags &= ~(WRTD_TRIGGERED | WRTD_LAST_VALID);
if (chan.config.mode == WRTD_TRIGGER_MODE_SINGLE) {
chan.config.flags &= ~WRTD_ARMED;
chan.config.state = OUT_ST_IDLE;
......
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