智能照明系统APP-本地串口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
LightingSystemApp-serial/.svn/pristine/9a/9a0016945cf1b443f7707056477...

23 lines
504 B

'use strict'
const util = require('util')
const Readable = require('stream').Readable
const check = require('check-types')
util.inherits(BfjStream, Readable)
module.exports = BfjStream
function BfjStream (read, options) {
if (check.not.instanceStrict(this, BfjStream)) {
return new BfjStream(read)
}
check.assert.function(read, 'Invalid read implementation')
this._read = function () { // eslint-disable-line no-underscore-dangle
read()
}
return Readable.call(this, options)
}