Fix typo in path call.
This commit is contained in:
parent
0ae37390fe
commit
1f99f011bc
|
@ -61,13 +61,13 @@
|
||||||
|
|
||||||
DigitalPin.prototype.close = function() {
|
DigitalPin.prototype.close = function() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
return FS.writeFile(this.unexportPath(), "" + this.pinNum, function(err) {
|
return FS.writeFile(this._unexportPath(), "" + this.pinNum, function(err) {
|
||||||
return _this._closeCallback();
|
return _this._closeCallback();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
DigitalPin.prototype.closeSync = function() {
|
DigitalPin.prototype.closeSync = function() {
|
||||||
FS.writeFileSync(this.unexportPath(), "" + this.pinNum);
|
FS.writeFileSync(this._unexportPath(), "" + this.pinNum);
|
||||||
return this._closeCallback(false);
|
return this._closeCallback(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -41,12 +41,12 @@ namespace 'Cylon.IO', ->
|
||||||
)
|
)
|
||||||
|
|
||||||
close: ->
|
close: ->
|
||||||
FS.writeFile(@unexportPath(), "#{ @pinNum }", (err) =>
|
FS.writeFile(@_unexportPath(), "#{ @pinNum }", (err) =>
|
||||||
@_closeCallback()
|
@_closeCallback()
|
||||||
)
|
)
|
||||||
|
|
||||||
closeSync: ->
|
closeSync: ->
|
||||||
FS.writeFileSync(@unexportPath(), "#{ @pinNum }")
|
FS.writeFileSync(@_unexportPath(), "#{ @pinNum }")
|
||||||
@_closeCallback(false)
|
@_closeCallback(false)
|
||||||
|
|
||||||
digitalWrite: (value) ->
|
digitalWrite: (value) ->
|
||||||
|
|
Loading…
Reference in New Issue