ucm: implement enadev2 and disdev2 sequence commands

It may be useful to call the sequences from devices from
the verb sequences or another device sequences.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2022-05-19 10:08:48 +02:00
parent c3a5d32ac3
commit 4b66e5fbce
5 changed files with 90 additions and 22 deletions

View file

@ -520,6 +520,10 @@ void uc_mgr_free_sequence_element(struct sequence_element *seq)
case SEQUENCE_ELEMENT_TYPE_CFGSAVE:
free(seq->data.cfgsave);
break;
case SEQUENCE_ELEMENT_TYPE_DEV_ENABLE_SEQ:
case SEQUENCE_ELEMENT_TYPE_DEV_DISABLE_SEQ:
free(seq->data.device);
break;
default:
break;
}