Skip to content

Commit

Permalink
* Fix for #27
Browse files Browse the repository at this point in the history
  • Loading branch information
mwittig committed Dec 19, 2015
1 parent a95a609 commit 0e1abeb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion devices/iwy_master.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ module.exports = (env) ->

class IwyMaster extends BaseLedLight
constructor: (@config) ->
@device = new IwyMasterDriver @config.addr, @config.device
if @config.class is 'Wifi370'
deviceType = IwyMasterDriver.DEVICES.WIFI370
else
deviceType = IwyMasterDriver.DEVICES.IWY_MASTER
@device = new IwyMasterDriver @config.addr, @config.port, deviceType
@device.on 'error', (err) ->
env.logger.warn 'light error:', err

Expand Down

0 comments on commit 0e1abeb

Please sign in to comment.