Skip to content

Commit

Permalink
Small fix to test script
Browse files Browse the repository at this point in the history
 - actually show if no device connected
  • Loading branch information
Jesper Grann Laursen committed Dec 14, 2021
1 parent 0a5760d commit f6e8ac3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ var busylight = require('../lib')

var bl = busylight.get();

// bl.debug = true;

if(!bl) return console.log('no busylight found');

bl.on('disconnected', function(err) {
console.log(err);
});

bl.on('connected', function(){

if(!bl)
return console.log('no busylight found');

bl.defaults({
volume: 1,
color: 'yellow'
Expand Down

0 comments on commit f6e8ac3

Please sign in to comment.