From 8acb539f7028ab8140a6668cf6c0ae2de194dfed Mon Sep 17 00:00:00 2001 From: cTn Date: Sat, 18 Jan 2014 12:14:09 +0100 Subject: [PATCH] upgrading cleanup routine to latest serial --- js/gui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/gui.js b/js/gui.js index 0e412f1f..efd58e55 100644 --- a/js/gui.js +++ b/js/gui.js @@ -218,7 +218,7 @@ GUI_control.prototype.tab_switch_cleanup = function(callback) { bufView[3] = 0x74; // t bufView[4] = 0x0D; // enter - chrome.serial.write(connectionId, bufferOut, function(writeInfo) { + serial.send(bufferOut, function(writeInfo) { // we could handle this "nicely", but this will do for now // (another approach is however much more complicated): // we can setup an interval asking for data lets say every 200ms, when data arrives, callback will be triggered and tab switched