clear out console.log
parent
aa6a789afd
commit
cc91d7c752
|
@ -20,8 +20,6 @@ class I2CDevice extends Base {
|
||||||
opts.i2cbus = opts.i2cbus || { name:opts.name||'i2c-bus', type:'c', transport:'n', options:{name:opts.name ||'i2c-device', path:opts.path||'i2c-bus'}}
|
opts.i2cbus = opts.i2cbus || { name:opts.name||'i2c-bus', type:'c', transport:'n', options:{name:opts.name ||'i2c-device', path:opts.path||'i2c-bus'}}
|
||||||
if ((opts.i2cbus.options || {}).host) opts.i2cbus.options.port = opts.i2cbus.options.port || 1776
|
if ((opts.i2cbus.options || {}).host) opts.i2cbus.options.port = opts.i2cbus.options.port || 1776
|
||||||
else opts.i2cbus.options.path = opts.i2cbus.options.path || 'i2c-bus'
|
else opts.i2cbus.options.path = opts.i2cbus.options.path || 'i2c-bus'
|
||||||
// console.log('+++++++++++++++++++++++BUS OPTIONS FOR CONSUMER SOCKET+++++++++++++++++')
|
|
||||||
// console.dir(opts.i2cbus)
|
|
||||||
super(opts)
|
super(opts)
|
||||||
this.registerSocket(opts.i2cbus)
|
this.registerSocket(opts.i2cbus)
|
||||||
this.address = +opts.address // make sure any passed number is number not a string
|
this.address = +opts.address // make sure any passed number is number not a string
|
||||||
|
|
Loading…
Reference in New Issue