1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-15 04:15:28 +03:00

upgrading cleanup routine to latest serial

This commit is contained in:
cTn 2014-01-18 12:14:09 +01:00
parent 6643e248b9
commit 8acb539f70

View file

@ -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