mirror of
https://github.com/ivabus/speakersafetyd
synced 2024-11-22 08:15:07 +03:00
types: Lock all elements we interact with
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
7dc04ccb1d
commit
e19970b5e0
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ impl Elem {
|
|||
|
||||
new_elem.id.set_name(cstr);
|
||||
new_elem.val.set_id(&new_elem.id);
|
||||
helpers::lock_el(card, &new_elem.id, &new_elem.elem_name);
|
||||
helpers::read_ev(card, &mut new_elem.val, &new_elem.elem_name);
|
||||
|
||||
return new_elem;
|
||||
|
|
Loading…
Reference in a new issue