Skip to content

Fixed the callback for init, now the remotes are ready before callback#15

Open
MasonBergstrom wants to merge 2 commits intoalexbain:masterfrom
MasonBergstrom:master
Open

Fixed the callback for init, now the remotes are ready before callback#15
MasonBergstrom wants to merge 2 commits intoalexbain:masterfrom
MasonBergstrom:master

Conversation

@MasonBergstrom
Copy link

Before this change the callback for init wasn't actually being called after init finished.
lirc = require("lirc_node"); lirc.init(function(){ console.log(lirc.remotes); });
This wouldn't work before because lirc.remotes wouldn't be ready yet but, callbacks are supposed to be called after a task is finished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant