1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 16:25:22 +03:00

Merge pull request #1895 from mikeller/fix_exception_on_connect

Fixed exception thrown when clicking 'Connect' directly after application start.
This commit is contained in:
Michael Keller 2020-02-27 01:44:50 +13:00 committed by GitHub
commit 5f30fe068e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,8 @@ var mspHelper;
var connectionTimestamp; var connectionTimestamp;
function initializeSerialBackend() { function initializeSerialBackend() {
mspHelper = new MspHelper();
mspHelper.process_data.bind(mspHelper);
GUI.updateManualPortVisibility = function(){ GUI.updateManualPortVisibility = function(){
var selected_port = $('div#port-picker #port option:selected'); var selected_port = $('div#port-picker #port option:selected');