Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

variable 'me' is not defined in read() #2

Closed
monaka opened this issue Feb 3, 2011 · 1 comment
Closed

variable 'me' is not defined in read() #2

monaka opened this issue Feb 3, 2011 · 1 comment

Comments

@monaka
Copy link
Contributor

monaka commented Feb 3, 2011

diff --git a/serialport.js b/serialport.js
index d4c8370..0daab31 100644
--- a/serialport.js
+++ b/serialport.js
@@ -55,6 +55,7 @@ function SerialPort(path) {
sys.inherits(SerialPort, events.EventEmitter);

SerialPort.prototype.read = function () {

  • var me = this;
    if (this.fd) {
    sys.puts("callback");
    var buff = new Buffer(65535);
    @@ -83,4 +84,4 @@ SerialPort.prototype.write = function (buffer) {
    }

-exports.SerialPort = SerialPort;
\ No newline at end of file
+exports.SerialPort = SerialPort;

@voodootikigod
Copy link
Collaborator

Use current version, updated and tested to work with node 0.4.0

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants