1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00

don't repeat the same code

This commit is contained in:
cTn 2014-01-27 00:48:21 +01:00
parent 61fe3d6141
commit d258cab005

View file

@ -23,8 +23,7 @@ var serial = {
disconnect: function(callback) {
var self = this;
self.transmitting = false;
self.output_buffer = [];
self.empty_output_buffer();
chrome.serial.disconnect(this.connectionId, function(result) {
if (result) {