moved code to pc_init(), dc_init()
This commit is contained in:
@@ -20,6 +20,14 @@
|
||||
|
||||
struct decoder_control dc;
|
||||
|
||||
void dc_init(void)
|
||||
{
|
||||
notify_init(&dc.notify);
|
||||
dc.state = DECODE_STATE_STOP;
|
||||
dc.command = DECODE_COMMAND_NONE;
|
||||
dc.error = DECODE_ERROR_NOERROR;
|
||||
}
|
||||
|
||||
void dc_command_wait(Notify *notify)
|
||||
{
|
||||
while (dc.command != DECODE_COMMAND_NONE) {
|
||||
|
Reference in New Issue
Block a user