Fix typo in path call.

This commit is contained in:
Edgar O Silva 2013-11-12 12:58:51 -06:00
parent 0ae37390fe
commit 1f99f011bc
2 changed files with 4 additions and 4 deletions

4
dist/digital-pin.js vendored
View File

@ -61,13 +61,13 @@
DigitalPin.prototype.close = function() {
var _this = this;
return FS.writeFile(this.unexportPath(), "" + this.pinNum, function(err) {
return FS.writeFile(this._unexportPath(), "" + this.pinNum, function(err) {
return _this._closeCallback();
});
};
DigitalPin.prototype.closeSync = function() {
FS.writeFileSync(this.unexportPath(), "" + this.pinNum);
FS.writeFileSync(this._unexportPath(), "" + this.pinNum);
return this._closeCallback(false);
};

View File

@ -41,12 +41,12 @@ namespace 'Cylon.IO', ->
)
close: ->
FS.writeFile(@unexportPath(), "#{ @pinNum }", (err) =>
FS.writeFile(@_unexportPath(), "#{ @pinNum }", (err) =>
@_closeCallback()
)
closeSync: ->
FS.writeFileSync(@unexportPath(), "#{ @pinNum }")
FS.writeFileSync(@_unexportPath(), "#{ @pinNum }")
@_closeCallback(false)
digitalWrite: (value) ->