mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 12:55:14 +03:00
MSP fixes
This commit is contained in:
parent
c917f69ac7
commit
4a0e855a43
3 changed files with 9 additions and 4 deletions
|
@ -108,13 +108,13 @@ var MSP = {
|
|||
});
|
||||
},
|
||||
listen: function(listener) {
|
||||
if (this.listeners[0] == undefined) {
|
||||
this.listeners[0] = listener;
|
||||
}
|
||||
else if (this.listeners.indexOf(listener) == -1) {
|
||||
if (this.listeners.indexOf(listener) == -1) {
|
||||
this.listeners.push(listener);
|
||||
}
|
||||
},
|
||||
clearListeners: function() {
|
||||
this.listeners = [];
|
||||
},
|
||||
send_message: function (code, data, callback_sent, callback_msp) {
|
||||
var bufferOut,
|
||||
bufView;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue