1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 22:35:17 +03:00

fix method name mismatch in serial layer

This commit is contained in:
cTn 2014-12-05 10:23:53 +01:00
parent ebff37ae3f
commit 21e414f4b3
2 changed files with 3 additions and 3 deletions

View file

@ -115,7 +115,7 @@ var serial = {
var self = this;
if (self.connectionId) {
self.empty_outputBuffer();
self.emptyOutputBuffer();
// remove listeners
for (var i = (self.onReceive.listeners.length - 1); i >= 0; i--) {
@ -249,7 +249,7 @@ var serial = {
}
}
},
empty_outputBuffer: function () {
emptyOutputBuffer: function () {
this.outputBuffer = [];
this.transmitting = false;
}

View file

@ -417,7 +417,7 @@ TABS.sensors.initialize = function (callback) {
};
TABS.sensors.cleanup = function (callback) {
serial.empty_output_buffer();
serial.emptyOutputBuffer();
if (callback) callback();
};