Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow initialize to be called more than once #1

Merged
merged 1 commit into from
Feb 4, 2017

Conversation

anaisbetts
Copy link
Contributor

@anaisbetts anaisbetts commented Feb 4, 2017

This PR allows you to release control back to Synapse, then take it back:

r = require('razer-chroma');
r.initialize();
r.Keyboard.setWave();
r.terminate();              // Switches back to default

r.initialize();                // This fails without this PR
r.Keyboard.setStarlight();

@felixrieseberg felixrieseberg merged commit d5ffac4 into felixrieseberg:master Feb 4, 2017
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.

None yet

2 participants