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 ddeee89 commit e303a66Copy full SHA for e303a66
tinyg.js
@@ -241,7 +241,7 @@ TinyG.prototype._open_second_channel = function (doSetup) {
241
self.serialPortData = null;
242
self._complete_open(doSetup)
243
}
244
-};
+}; // _open_second_channel
245
246
TinyG.prototype._complete_open = function (doSetup) {
247
var self = this;
@@ -324,6 +324,9 @@ TinyG.prototype._complete_open = function (doSetup) {
324
process.nextTick(function() {
325
self.emit('open');
326
if (doSetup) {
327
+ // Poke it to get a response
328
+ self.write({sr:null});
329
+
330
setupPromise = setupPromise.delay(5).then(function() {
331
self.write({clr:null});
332
return self.set({jv:4}); //Set JSON verbosity to 2 (medium)
0 commit comments