We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b4b448 commit 5f60421Copy full SHA for 5f60421
modules/AT.js
@@ -36,8 +36,9 @@ exports.connect = function (ser) {
36
if (dbg) console.log("] "+JSON.stringify(d));
37
if (handlers) {
38
for (var h in handlers) {
39
- while (line.substr(0,h.length)==h) {
40
- var pre = line;
+ var pre;
+ while (pre!=line && line.substr(0,h.length)==h) {
41
+ pre = line;
42
line = handlers[h](line);
43
//if (dbg) console.log("HANDLER] "+JSON.stringify(pre)+"=>"+JSON.stringify(line)+" ("+h+")");
44
}
0 commit comments