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

Too much bugs... #32

Open
ptorrent opened this issue Jul 14, 2016 · 0 comments
Open

Too much bugs... #32

ptorrent opened this issue Jul 14, 2016 · 0 comments

Comments

@ptorrent
Copy link

ptorrent commented Jul 14, 2016

modem.parseResponse = function(response) {
    var plain = response.slice(response.indexOf(':')+1).trim();
    var parts = plain.split(/,(?=(?:[^"]|"[^"]*")*$)/);
    for(i in parts)
        parts[i] = parts[i].replace(/\"/g, '');

    return parts;
}
modem.parseResponse = function(response) {
    var plain = response.slice(response.indexOf(':')+1).trim();
    var parts = plain.split(/,(?=(?:[^"]|"[^"]*")*$)/);
    for(var i=0;i<parts.length;i++)
        parts[i] = parts[i].replace(/\"/g, '');

    return parts;
}

modem.close = function(device) {
    this.port.removeAllListeners();
    this.port.close();
    this.port = null;
    this.isOpened = false;
    this.emit('close');
}


modem.close = function(device) {
    for(var k in timeouts) clearTimeout(timeouts[k])
    this.port.removeAllListeners();
    try{this.port.close()}catch(e){};
    this.port = null;
    this.isOpened = false;
    this.emit('close');
}

if(this.queue[0] && this.queue[0]['command'].trim().slice(0, data.length) === data) {
        this.queue[0]['command'] = this.queue[0]['command'].slice(data.length); <= Why you do that ?
        return ;
  }

Please.. any update ?

@ptorrent ptorrent changed the title To mutch bug... Too much bug... Jul 14, 2016
@ptorrent ptorrent changed the title Too much bug... Too much bugs... Jul 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant