Added pin number to emit close event.
This commit is contained in:
parent
c47e3db26d
commit
f71c24ff0a
|
@ -85,7 +85,7 @@
|
|||
return this.self.emit('error', 'Error while closing pin files');
|
||||
} else {
|
||||
console.log("PIN SHOULD BE UNEXPORTED");
|
||||
return this.self.emit('close');
|
||||
return this.self.emit('close', this.pinNum);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ namespace 'Cylon.IO', ->
|
|||
@self.emit('error', 'Error while closing pin files')
|
||||
else
|
||||
console.log("PIN SHOULD BE UNEXPORTED")
|
||||
@self.emit('close')
|
||||
@self.emit('close', @pinNum)
|
||||
|
||||
digitalWrite: (value) ->
|
||||
@self._setMode('w') unless @mode == 'w'
|
||||
|
|
Loading…
Reference in New Issue